New issue
Advanced search Search tips

Issue 813015 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature
Launch-Privacy: Yes
Launch-Security: Yes
Launch-UI: NA



Sign in to add a comment

Extension API Modification: enterprise.deviceAttributes

Project Member Reported by pmarko@chromium.org, Feb 16 2018

Issue description

Extension API Modification Proposal

API Namespace: enterprise.deviceAttributes
API Owners: [Team Members, Team Aliases]
The following documents may not be necessary depending on the scope of your proposal:
API Overview Doc: https://docs.google.com/document/d/1NDt1enxSbKrbwo-BH4qgCbg2M5EWB6igkpe1le0Egk0/edit#heading=h.w8inspeo32bj
Design Doc: N/A
Supplementary Resources: N/A (no UI changes)

Short description:
[ChromeOS-only] Extend the enterprise.deviceAttributes API to provide the device serial number, the administrator-annotated Asset ID and the
administrator-set annotated location. Only allowed for force-installed extensions running in an affiliated user profile.

Notes:
This API change was discussed on an e-mail thread, on the doc, and on the CL https://chromium-review.googlesource.com/c/chromium/src/+/876365, but I forgot to file this bug before.

Actual implementation bug is  bug 803974 .
 

Comment 1 by pmarko@chromium.org, Feb 16 2018

@meacer: Mind flipping the Security review bit (re e-mail thread "Proposal to extend the chrome.enterprise.deviceAttributes API")

Comment 2 by tnagel@chromium.org, Feb 19 2018

Cc: mnissler@chromium.org
+mnissler FYI
Project Member

Comment 3 by bugdroid1@chromium.org, Feb 20 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform2/+/2e197f8b0ae78cc716c1a121100f6a1c2cefaf48

commit 2e197f8b0ae78cc716c1a121100f6a1c2cefaf48
Author: Pavol Marko <pmarko@chromium.org>
Date: Tue Feb 20 09:52:13 2018

login: Pass site isolation startup flags according to device policy

Pass site isolation start-up flags to chrome based on the
DeviceLoginScreenSitePerProcess and DeviceLoginScreenIsolateOrigins
device policies.

Note:
If the device policy values don't match the respective user policy
values (or if the user is unmanaged), chrome will request to restart.
See CL:924147 on the chrome side.

BUG= chromium:813015 
TEST=cros_run_unit_tests --board=${BOARD} --packages \
     chromeos-base/chromeos-login
Change-Id: Ie86563f9917d49e48648c262bfe6e2bb2ebfeb0a
Reviewed-on: https://chromium-review.googlesource.com/924421
Commit-Ready: Pavol Marko <pmarko@chromium.org>
Tested-by: Pavol Marko <pmarko@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>

[modify] https://crrev.com/2e197f8b0ae78cc716c1a121100f6a1c2cefaf48/login_manager/device_policy_service.cc
[modify] https://crrev.com/2e197f8b0ae78cc716c1a121100f6a1c2cefaf48/login_manager/device_policy_service_unittest.cc

Comment 4 by tnagel@chromium.org, Feb 20 2018

Labels: -Launch-Privacy-NotReviewed Launch-Privacy-Started
Quoting [1]: "For public APIs, please email the proposal to extension-api-reviews@chromium.org for any additional feedback."

[1] https://chromium.googlesource.com/chromium/src/+/master/extensions/docs/new_api_proposal.md

Comment 5 by tnagel@chromium.org, Feb 20 2018

Could you please cc me to that thread?

Comment 6 by pmarko@chromium.org, Feb 20 2018

The CL in Comment #3 has nothing to do with this bug. I accidentally used the wrong bug on the CL. It is supposed to be mapped to bug 800117.

Comment 7 by pmarko@chromium.org, Feb 20 2018

Re Comment #4:
Done. This must have changed very recently, because the same document was talking about security-enamel@chromium.org (where I've sent it to), but it doesn't mention that anymore.

Comment 8 by tnagel@chromium.org, Feb 20 2018

Labels: -Launch-Privacy-Started Launch-Privacy-Yes
Thanks Pavol!

A stable device id is already available [1] today via chrome.enterprise.deviceAttributes.getDirectoryDeviceId(). The main difference is that the directory id gets reset upon re-enrollment whereas the serial number stays constant. From a privacy perspective this seems reasonable as we recognize admins' interest of including the serial number into a CSR so that for example certificates of stolen devices may be revoked.

Admin-annotated asset id and device location are fine to share because they have been defined by the admin and are not permanent (reset upon powerwash).

[1] https://developer.chrome.com/extensions/enterprise_deviceAttributes

Comment 9 by pmarko@chromium.org, Feb 20 2018

Thank you Thiemo!
Labels: -Launch-Security-NotReviewed Launch-Security-Started
Setting Launch-Security: Started to reflect the fact that this has been in review on the e-mail thread.
Labels: -Launch-Security-Started Launch-Security-Yes
Flipping security bit based on the discussion at https://groups.google.com/a/chromium.org/forum/#!topic/apps-dev/G3TkGKtmbgY

Thanks!
Cc: benwells@chromium.org
Labels: -Launch-API-NotReviewed Launch-API-Yes
As discussed on the thread, I have no objections, assuming this is an enterprise-only API.  Since this is CrOS-specific, +benwells@ FYI.
Given that M-66 will go to stable very soon, can someone please update this feature with a new target milestone, or close this bug if work has completed?
Project Member

Comment 14 by bugdroid1@chromium.org, May 8 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/17fd16b23e36148d437014463c08d4356f81d55d

commit 17fd16b23e36148d437014463c08d4356f81d55d
Author: Thiemo Nagel <tnagel@chromium.org>
Date: Tue May 08 11:58:01 2018

dump_vpd_log: Add to filter whitelist

Include more VPD keys in the filtered file to support  crbug.com/813015 
and crbug.com/820800 launches:
  Product_S/N
  serial_number
  should_send_rlz_ping
  rlz_embargo_end_date

BRANCH=none
BUG= chromium:823724 , chromium:813015 , chromium:839910 
TEST=none

Change-Id: Iccbcfaf971aa5b77b71d19c30fcd29fa2b4dd0be
Reviewed-on: https://chromium-review.googlesource.com/1041965
Commit-Ready: Thiemo Nagel <tnagel@chromium.org>
Tested-by: Thiemo Nagel <tnagel@chromium.org>
Reviewed-by: Thiemo Nagel <tnagel@chromium.org>
Reviewed-by: Pavol Marko <pmarko@chromium.org>

[modify] https://crrev.com/17fd16b23e36148d437014463c08d4356f81d55d/util/dump_vpd_log

Status: Fixed (was: Started)
Project Member

Comment 16 by bugdroid1@chromium.org, May 10 2018

Labels: merge-merged-release-R67-10575.B
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/vpd/+/7981ec789af5714b9bed80773f68d7879ba44ee8

commit 7981ec789af5714b9bed80773f68d7879ba44ee8
Author: Thiemo Nagel <tnagel@chromium.org>
Date: Thu May 10 20:58:02 2018

dump_vpd_log: Add to filter whitelist

Include more VPD keys in the filtered file to support  crbug.com/813015 
and crbug.com/820800 launches:
  Product_S/N
  serial_number
  should_send_rlz_ping
  rlz_embargo_end_date

BRANCH=none
BUG= chromium:823724 , chromium:813015 , chromium:839910 
TEST=none

Change-Id: Iccbcfaf971aa5b77b71d19c30fcd29fa2b4dd0be
Reviewed-on: https://chromium-review.googlesource.com/1041965
Commit-Ready: Thiemo Nagel <tnagel@chromium.org>
Tested-by: Thiemo Nagel <tnagel@chromium.org>
Reviewed-by: Thiemo Nagel <tnagel@chromium.org>
Reviewed-by: Pavol Marko <pmarko@chromium.org>
(cherry picked from commit 17fd16b23e36148d437014463c08d4356f81d55d)
Reviewed-on: https://chromium-review.googlesource.com/1054228
Commit-Queue: Thiemo Nagel <tnagel@chromium.org>

[modify] https://crrev.com/7981ec789af5714b9bed80773f68d7879ba44ee8/util/dump_vpd_log

Status: Verified (was: Fixed)
Verified using M68 

Sign in to add a comment