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

Root cert setup #40

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Root cert setup #40

merged 6 commits into from
Oct 2, 2024

Conversation

suprjinx
Copy link
Collaborator

Moves the configuration of a root cert from rake task (developer only) to main app

Fixes #38

issuer_name: root_ca_ref,
ttl: "87600h").data[:certificate]
# save the root certificate
File.write("tmp/#{root_ca_ref}.crt", root_cert)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This doesn't seem to be used any where. I assume you are just saving it to a known location where you can find it manually if needed, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes -- i am not sure it's really needed since it can be retrieved as needed from vault -- and this does not seem to include the private key

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okay there's no private key because these are generated as internal where Vault keeps the private key and we never need to know it. Generating the cert with exported path will respond with private key as well as cert.

Copy link
Collaborator

@GeorgeJahad GeorgeJahad left a comment

Choose a reason for hiding this comment

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

lgtm

@suprjinx suprjinx merged commit a37ec0a into G-Research:main Oct 2, 2024
2 checks passed
@suprjinx suprjinx deleted the root-cert-setup branch October 2, 2024 14:55
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.

Create vault root cert if need be (fully managed vault)
2 participants