Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

4141done
Copy link
Collaborator

@4141done 4141done commented Nov 29, 2023

Proposed changes

We save the values of the provided certs that we retrieve from Kubernetes secrets in the Certificates attribute on the Certificates struct.

This is sensitive information that we want to make sure stays out of the logs and any stack traces. A common approach to this is to create a type definition for sensitive values that implements Stringer and JSON interfaces and cast the sensitive data to that value.

Help

I'm very new to Go. I may have made some non-idiomatic choices or failed to use features which could have improved this.

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • I have updated any relevant documentation (README.md and CHANGELOG.md)

Copy link
Collaborator

@ciroque ciroque left a comment

Choose a reason for hiding this comment

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

One minor nit, otherwise this is a nice clean addition to the code

@ciroque
Copy link
Collaborator

ciroque commented Dec 15, 2023

@4141done do you need anything from me to merge this?

@4141done
Copy link
Collaborator Author

@4141done do you need anything from me to merge this?

If you have time would you be able to run a test pass on it? That's what I keep not having time to go through. Otherwise I think we are good.

@ciroque
Copy link
Collaborator

ciroque commented Dec 15, 2023

Confirmed integration test works.

@4141done 4141done force-pushed the je-145-unloggable-certs branch from 23457dd to 3d3e17f Compare December 15, 2023 22:40
@4141done 4141done merged commit 2ee0441 into main Dec 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants