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

Update Macaroon claims/constraints for OIDC token minting #10792

Closed
woodruffw opened this issue Feb 18, 2022 · 3 comments · Fixed by #11122
Closed

Update Macaroon claims/constraints for OIDC token minting #10792

woodruffw opened this issue Feb 18, 2022 · 3 comments · Fixed by #11122
Labels
APIs/feeds tokens Issues relating to API tokens

Comments

@woodruffw
Copy link
Member

We're going to want to mint short-lived Warehouse API tokens (which are Macaroons) based on incoming OIDC JWTs.

As part of the "short-lived" part, we'll need need to make sure the tokens support some kind of expiration claim.

@woodruffw
Copy link
Member Author

As part of this we'll probably want to revive some of the work in #6935, namely adding a TopLevelCaveat that dispatches to V1Caveat or V2Caveat depending on the version. V2Caveat can then be the main caveat format we use here.

@di di added APIs/feeds tokens Issues relating to API tokens labels Feb 18, 2022
@woodruffw
Copy link
Member Author

I'm going to get started on this while #10753 is pending review.

@woodruffw
Copy link
Member Author

#11122 addresses this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIs/feeds tokens Issues relating to API tokens
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants