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

Zarf tools update-creds errors when updating internal git or artifact server when it doesn't exist #2903

Closed
AustinAbro321 opened this issue Aug 19, 2024 · 0 comments · Fixed by #2904
Labels
bug 🐞 Something isn't working

Comments

@AustinAbro321
Copy link
Contributor

AustinAbro321 commented Aug 19, 2024

Environment

App version: v0.38.2 (though the issue may have been introduced earlier)

Steps to reproduce

  1. zarf init --confirm (no git server deployed)
  2. zarf tools update-creds

Expected result

Update creds successfully

Actual Result

Fails because Zarf tries to login to the git server to generate a new artifact token, but the git server doesn't exist.

Temporary workaround

Update creds one at a time. For example if you only need to update the registry creds and the state in the agent run

zarf tools update-creds registry
zarf tools update-creds agent

Note

The underlying issue here is that we save state for git servers and artifact servers even when they don't exist, but we should create a fix for this in the short term. This is related to #2740

@AustinAbro321 AustinAbro321 added possible-bug 🐛 bug 🐞 Something isn't working and removed possible-bug 🐛 labels Aug 19, 2024
@salaxander salaxander added this to the v0.39.0 milestone Aug 20, 2024
@salaxander salaxander added this to Zarf Aug 20, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Zarf Aug 20, 2024
@salaxander salaxander moved this from Backlog to In progress in Zarf Aug 20, 2024
@salaxander salaxander removed this from the v0.39.0 milestone Aug 22, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Zarf Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants