Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-scoped tokens #885

Open
peterthomassen opened this issue Feb 6, 2024 · 0 comments
Open

Auto-scoped tokens #885

peterthomassen opened this issue Feb 6, 2024 · 0 comments

Comments

@peterthomassen
Copy link
Member

peterthomassen commented Feb 6, 2024

  • Add a boolean attribute Token.perm_create_domain (default: false unless login token; migration: true if token has no policies).
  • Add a boolean attribute Token.perm_delete_domain (default: false unless login token; migration: true if token has no policies).
  • Add an boolean attribute Token.auto_policy (default: false). (Must also have a restrictive default policy)

Tokens can create domains iff perm_create_domain == True.

Tokens can delete domains iff perm_delete_domain == True && they have a permissive policy for the domain in question (or no policies at all).

When a domain is created and auto_policy == True, the token is assigned a permissive policy for this domain.

This allows provisioning of domains and maintaining/de-provisioning the same domains, within an account, without granting access to other parts of the account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant