Skip to content

Commit f3ed513

Browse files
authored
Merge pull request #292 from nspcc-dev/266-bearer-token-issuer
acl: Extend `BearerToken` message with `issuer` field
2 parents 183448a + f49089f commit f3ed513

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- Link object payload message (#263)
88
- Children sizes index to the link objects (#264)
99
- `LINK` split chain object type (#283)
10+
- `BearerToken.issuer` field (#266)
1011

1112
### Changed
1213
- Split ID is deprecated, the first child part is used instead and is known to the other parts (#283)

acl/types.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ message BearerToken {
236236
}
237237
// Token expiration and valid time period parameters
238238
TokenLifetime lifetime = 3 [json_name="lifetime"];
239+
240+
// Token issuer's user ID in NeoFS. It must equal to the related
241+
// container's owner.
242+
neo.fs.v2.refs.OwnerID issuer = 4 [json_name="issuer"];
239243
}
240244
// Bearer Token body
241245
Body body = 1 [json_name="body"];

proto-docs/acl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ owner with additional information preventing token abuse.
6060
| eacl_table | [EACLTable](#neo.fs.v2.acl.EACLTable) | | Table of Extended ACL rules to use instead of the ones attached to the container. If it contains `container_id` field, bearer token is only valid for this specific container. Otherwise, any container of the same owner is allowed. |
6161
| owner_id | [neo.fs.v2.refs.OwnerID](#neo.fs.v2.refs.OwnerID) | | `OwnerID` defines to whom the token was issued. It must match the request originator's `OwnerID`. If empty, any token bearer will be accepted. |
6262
| lifetime | [BearerToken.Body.TokenLifetime](#neo.fs.v2.acl.BearerToken.Body.TokenLifetime) | | Token expiration and valid time period parameters |
63+
| issuer | [neo.fs.v2.refs.OwnerID](#neo.fs.v2.refs.OwnerID) | | Token issuer's user ID in NeoFS. It must equal to the related container's owner. |
6364

6465

6566
<a name="neo.fs.v2.acl.BearerToken.Body.TokenLifetime"></a>

0 commit comments

Comments
 (0)