W3C home > Mailing lists > Public > public-automotive@w3.org > January 2020

AW: Gen2 access restrictions

From: Schildt Sebastian (CR/AEX1) <Sebastian.Schildt@de.bosch.com>
Date: Mon, 20 Jan 2020 14:55:18 +0000
To: "public-automotive@w3.org" <public-automotive@w3.org>
Message-ID: <1e61554500474aad90daa8bf7a140bca@de.bosch.com>
Hi,
I may be not up to speed, with all discussion going on here recently, but from what I see from here, I feel

1 will only happen in development (and maybe better not even implement it), and I am not sure I understand the authlevels, I think access is more complex that just separating a tree (of thousands of elements) to n authlevels.

I agree an access should differentiate between read and/or write and on the level of individual elements in the tree (so leafs, or subtrees), and an access token needs to describe it (the scp and acs in your model), but I think the information WHO actually can access what can not be stored in the data model / tree annotations itself.

Rationale: I may have a VSS Gen2 system providing lots of data, but when I ship it, I do not yet know who will need/be allowed to access what. So it would be hard to stratify the data model using “access levels”. I would rather assume the the token (scsp and acs) will be signed in such a way, that the VSS implementation processing the token, can check whether it trusts that CA (and it may have some idea what kind of data this specific CA might even be allowed to give access to -> like your levels), but I would see this rules as outside VSS scope and more like implementation specific.

The annotation of read/write is still useful, because apart from security it is generally useful (meta-)information describing what could (provided you have the right token) be done with a specific data point.



Mit freundlichen Grüßen / Best Regards

Sebastian Schildt
CR/AEX1
Threema<threema://add/?id=T8YWYXJ9> / Threema Work<threemawork://add/?id=T8YWYXJ9>: T8YWYXJ9

Von: Ulf Björkengren <ulf.bjorkengren@gmail.com>
Gesendet: Donnerstag, 16. Januar 2020 10:55
An: public-automotive <public-automotive@w3.org>
Betreff: Gen2 access restrictions

Below is an attempt to formulate a requirement list for the Gen2 access restrictions.

1. No restriction, read/write is allowed without any token validation.
2. Write-only restriction, write requests require valid token, read requests without token validation.
3. Read-write restriction, both read and write requests require valid token.
4. Restriction can be applied to separate nodes, or to groups of nodes (subtree).
5. Client authorization is provided for a group of nodes (subtree).
6. The general access to the tree for a client, with or without access restrictions, can be limited to a subtree. This general access can be set per client.

These requirements can be enforced by the following design.

Two new properties are added to the VSS2.0 model:
- "validate": "xxx" // where xxx can be either "write-only" or "read-write"
- "authLevel": X // where X is 0..9

Three fields are added to the Access token:
- "scp": "path" // where path is a valid VSS path
- "acs": "access" // where access is either "read-only" or "read-write"
- "authLev": Y // where Y is 0..9

The "validate" property can be set in branch nodes, or leaf nodes. In branch nodes it leads to that it is inherited in all underlying nodes (may be overridden by a "validate" in any of these nodes). A  node without access restriction set, either through inheritance or explicitly, has no access restriction.
The "authLevel" property follows the same inheritance rules as "validate", with the difference that overriding is only possible with a higher value than the inherited, and that a node without authorization level set through inheritance or explicitly, is assigned the value 0.

With the described information a Gen2 server will then be able to enforce the access restriction requirements 1 through 6 mentioned above.
Requirement 6 has the limitation that clients with higher authorization levels can only be allowed to access a superset of what a client with a lower level has access to, i.e. it will always have access to the parts that clients with lower levels have.

Please comment if you think that the requirements 1-6 are incorrect, or more reqs needs to be added, or if you see any flaws in the design.

BR
Ulf
Received on Monday, 20 January 2020 14:55:30 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 14:55:31 UTC