Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Creates new certificate authority using a pre-shared key. This certificate authority is generated on the fly and would yield the same private key every time for the given PSK.
This PR creates an utility package
pkg/derivecert
that allows services that have a certain pre-shared key (i.e. Pomeriumshared_secret
) to get automatic TLS without need to share and distribute certs, and provides a better alternative to plaintext (or with disabled TLS cert chain validation) communication, but is not intended to be a replacement for proper mTLS setup.Certs are intentionally created with very large validity, so that services that start (or restart) would be able to trust them.
Related issues
User Explanation
Checklist
improvement
/bug
/ etc)