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

Add interactive flow to credential cache. #211

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented Jan 5, 2023

Summary

This PR adds the ability to let the credential cache to go through the interactive flow if a credential is not found.

This is mostly refactoring to share the interactive flow between the cache and gitsign directly and prevent import cycles.

This allows for the cache socket to be passed through an SSH session to allow for remote sessions to use the cache to fetch credentials with the local client interactive flow (i.e. you can use your local browser to authenticate and cache credentials for a remote session).

Testing around this is weak at the moment - I want to look into setting up scaffolding to allow easier integration tests against test instances, but this will happen in a different PR.

Fixes #190

Release Note

Credential cache to go through the interactive flow if a credential is not found. When paired with SSH socket forwarding, this can be used to use your local browser to authenticate and cache credentials for a remote session.

Documentation

@wlynch
Copy link
Member Author

wlynch commented Jan 5, 2023

cc @kaniini

This allows for the cache socket to be passed through an SSH client to
allow for remote sessions to use the cache to fetch credentials with the
interactive flow.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
@kaniini
Copy link

kaniini commented Jan 5, 2023

Total gamechanger for using gitsign on remote machines. Thanks so much.

Copy link
Member

@eddiezane eddiezane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

internal/fulcio/identity.go Show resolved Hide resolved
internal/io/streams.go Show resolved Hide resolved
@wlynch wlynch merged commit 98ef482 into sigstore:main Jan 12, 2023
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

Successfully merging this pull request may close these issues.

Support users who SSH into a remote server
3 participants