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

How do I re-configure a connected repository? #3201

Open
macsj200 opened this issue Sep 10, 2021 · 3 comments
Open

How do I re-configure a connected repository? #3201

macsj200 opened this issue Sep 10, 2021 · 3 comments

Comments

@macsj200
Copy link

macsj200 commented Sep 10, 2021

I'm experimenting with using ECR #869 #2033.

Is there a way to configure the settings for a repository after it's added? I.e. username, password, etc.

I'm obtaining a temporary password for the ECR registry with aws ecr get-login-password and using the username AWS.

Currently I'm forced to manually disconnect from the ECR registry and re-add the registry URI so I can re-enter the username and password.

@bwateratmsft
Copy link
Collaborator

There's not (generally) a way to edit the credentials, instead you can right click the registry connection and choose "Disconnect", then start over with connecting.

@macsj200
Copy link
Author

Thanks for following up on this. I was imagining that the credentials are stored somewhere (in a JSON config file?). I was wondering if I could manually edit these "cached" credentials somehow.

The extension has to maintain a "list" of connected registries, right? Wouldn't the credentials be stored alongside that?

@bwateratmsft
Copy link
Collaborator

Good question! We use VSCode's Memento construct for storing the connection data (server URL where it applies, and username), and the SecretStorage construct for the password/PAT. In the past we used keytar for secret storage but when VSCode added the SecretStorage API we switched to that. I think VSCode still uses keytar underneath for that, but I don't know for sure.

In certain circumstances, the registry connection will show a "Re-enter credentials..." right-click option, which essentially walks back through the connection wizard. But, I think it currently will only show up for Docker Hub and Gitlab connections, not for generic V2 registries.

@dbreshears dbreshears added this to the Future milestone Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants