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

Secret masking improvements #183

Merged
merged 1 commit into from
Mar 23, 2024
Merged

Secret masking improvements #183

merged 1 commit into from
Mar 23, 2024

Conversation

umputun
Copy link
Owner

@umputun umputun commented Mar 23, 2024

Enforce masking of secrets in internal logger. Also enforce masking in colorized log if Printf used.

This PR implements the masking of secrets in logger output and revises how debugging is set up, with a focus on logs involving secrets. The secrets are made available only after the playbook is loaded, and they're now passed as parameters to setupLog function. Relevant tests were updated and an additional test case for Printf function with secrets was added.

see #181

… in colorized log if a Printf used

This commit implements the masking of secrets in logger output and revises how debugging is set up, with a focus on logs involving secrets. The secrets are made available only after the playbook is loaded, and they're now passed as parameters to setupLog function. Relevant tests were updated and an additional test case for Printf function with secrets was added.
Copy link

Deploying spot-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4402a87
Status: ✅  Deploy successful!
Preview URL: https://1b0d8045.spot-7ki.pages.dev
Branch Preview URL: https://hide-secrets.spot-7ki.pages.dev

View logs

@umputun umputun merged commit 07eb87a into master Mar 23, 2024
3 checks passed
@umputun umputun deleted the hide-secrets branch March 23, 2024 19:22
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8403979176

Details

  • 9 of 9 (100.0%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.1%) to 84.601%

Files with Coverage Reduction New Missed Lines %
cmd/spot/main.go 2 81.79%
Totals Coverage Status
Change from base Build 8397900076: 0.1%
Covered Lines: 2681
Relevant Lines: 3169

💛 - Coveralls

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.

None yet

2 participants