Skip to content

feat(get-creds): only print credentials for configured services - #5418

Merged
AustinAbro321 merged 1 commit into
mainfrom
get-creds-prints-configured
Oct 2, 2026
Merged

AustinAbro321 merged 1 commit into
mainfrom
get-creds-prints-configured

Conversation

@AustinAbro321

@AustinAbro321 AustinAbro321 commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Description

I noticed a stale TODO that's simple to implement now. We print the credentials when the service is configured.

I also now have us print registry credentials even when the service is not internal. I think this makes sense. My guess would be that this wasn't done before because we used to print credentials after every init, but now it is something explicitly asked for.

Checklist before merging

Signed-off-by: Austin Abro <austinabro321@gmail.com>
@netlify

netlify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for zarf-docs canceled.

Name Link
🔨 Latest commit bfb7f90
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/6abc11ca4fce2f00079e1a63

@codecov

codecov Bot commented Sep 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/cmd/zarf_tools.go 39.95% <100.00%> (+4.80%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@AustinAbro321
AustinAbro321 marked this pull request as ready for review September 29, 2026 20:22
@AustinAbro321
AustinAbro321 requested review from a team as code owners September 29, 2026 20:22

@brandtkeller brandtkeller left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No objections with the logic updated - I will say that the log for individual creds happy-path could also use a better UX. username to stderr log and password to stdout is two separate streams. Maybe we align it to the broader command - could be a good first issue.

@AustinAbro321

AustinAbro321 commented Oct 2, 2026 •

Copy link
Copy Markdown
Member Author

@brandtkeller that makes sense to me. The command already has a --output-format flag, however it has no effect when specific credentials are requested. We could easily have it print in a json and yaml format with the username

@AustinAbro321
AustinAbro321 added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 1f4b42a Oct 2, 2026
32 checks passed
@AustinAbro321
AustinAbro321 deleted the get-creds-prints-configured branch October 2, 2026 15:05
@github-project-automation github-project-automation Bot moved this to Done in Zarf Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants