-
Notifications
You must be signed in to change notification settings - Fork 49
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
internal/oidc, test: ambient credentials, refactoring #59
Conversation
Signed-off-by: William Woodruff <[email protected]>
N.B.: I also moved OAuth flow support into its own module ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think it'd be good to get this in now since I have some changes that need to go on top of the oauth
module.
@woodruffw I'll follow up with a change to amend the release workflow to use this.
Co-authored-by: Alex Cameron <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
Sounds good! |
pass | ||
|
||
|
||
def detect_credential() -> Optional[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to address this in this PR, but I think Optional[Identity]
would be a better signature here -- that way we could assert our validity guarantees about the token (e.g. having the right audience and being issued by a party we know).
Thoughts @tetsuo-cpp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(If we were to do this, we should also refactor our top-level sign
API to take an Identity
instead of constructing one internally.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I think that's a good idea. I'm going to take a stab at #4 in the coming days so it might be good to tackle it then so we get the interfaces right.
Signed-off-by: William Woodruff [email protected]
Summary
Refactors
sigstore._internal.oidc
into a structured (directory) module and addssigstore._internal.oidc.ambient
for ambient credential detection. See #31.Ticket Link
See #31. Does not close, since other detectors are needed.