Repository navigation
Conversation
gmgigi96
requested review from
diocas,
glpatcern,
jessegeens and
rawe0
as code owners
October 12, 2026 09:32
gmgigi96
force-pushed
the
apppassword-scope
branch
from
October 12, 2026 09:33
03ed0c8 to
94adcf1
Compare
gmgigi96
marked this pull request as draft
October 12, 2026 10:18
gmgigi96
force-pushed
the
apppassword-scope
branch
6 times, most recently
from
October 12, 2026 12:10
2f67eb3 to
c166122
Compare
gmgigi96
force-pushed
the
apppassword-scope
branch
6 times, most recently
from
October 22, 2026 12:20
1c87c28 to
8fe99c8
Compare
gmgigi96
force-pushed
the
apppassword-scope
branch
2 times, most recently
from
October 27, 2026 10:20
e90e5a3 to
f169804
Compare
App passwords carry a client kind, permissions, optional roots and an expiry, enforced by a new appauth scope in the HTTP auth middleware and in every gRPC service. Users create them through the login flow, administrators for any user through the Admin API.
gmgigi96
force-pushed
the
apppassword-scope
branch
from
October 27, 2026 15:11
f169804 to
f94c3a3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
App passwords stop being full-power credentials.
What an app password is. A 43-character secret, stored hashed, with a client kind (
sync,cliorwebdav), a list of permissions, optional root folders and an expiry. Users get one through the login flow:syncwith*for the desktop client,cliwith read and write for the CERNBox CLI. Administrators can create, list and revoke them for any user through the Admin API.The token. As before, a client presents its app password and the gateway exchanges it for a reva token. That token no longer carries the owner scope but a single
appauthscope, built from the stored app password:{ "password_id": "0d2c9f3e-…", "client": "cli", "permissions": ["files:list", "files:read", "files:write"], "roots": ["/eos/user/e/einstein/thesis"], "expires_at": 1775000000 }The scope travels inside the token, so the same rules apply wherever the token is used: WebDAV, OCS, the data provider or gRPC.
Permissions. Every CS3 request maps to one permission, and a request whose permission is not granted is refused.
files:listfiles:readfiles:writefiles:movefiles:deleteversions:list,versions:restoretrash:list,trash:restore,trash:purgeshares:list,shares:managedirectory:searchlabels:read,labels:writeapps:openpreferences:write*allows every request but those on the never list. Identity lookups (users, groups, reading preferences) are always allowed. Never allowed, not even with*: creating, listing or revoking app passwords, the Admin API, storage space management, OCM invites and share changes, and data transfers. So an app password cannot mint others.Where it is checked. The HTTP auth middleware checks how the app password is sent (
sync: basic auth,cli: bearer,webdav: either) and that the user agent fits its kind. The gRPC auth interceptor, in the gateway and in every provider, checks the permission of each request. The data provider does the same for downloads and uploads, which reach the storage without gRPC.Expiry.
cliandwebdavapp passwords expire after 90 days by default and after 365 at most;syncones need none. The store refuses an expired app password, andexpires_atin the scope makes every token minted from it stop working at the same moment, whatever the token's own lifetime.Roots. When set, a request must refer to a path under one of the roots: references by id are resolved to paths, and a move is checked at both ends. The store does not accept roots yet, until listings of shares and spaces can be filtered against them.
Revocation. Logins with an app password are cached for five minutes, so a revoked one stops working within that time, and at once on the node that revoked it.