Skip to content

Don't always write private key to disk#347

Merged
squat merged 1 commit intosquat:mainfrom
baurmatt:write-key-on-generation
Jan 31, 2023
Merged

Don't always write private key to disk#347
squat merged 1 commit intosquat:mainfrom
baurmatt:write-key-on-generation

Conversation

@baurmatt
Copy link
Copy Markdown
Contributor

Only write private key to disk on new key generation. Otherwise just use what is there. This allows externally key generation and injection with a secret.

Only write private key to disk on new key generation. Otherwise
just use what is there. This allows externally key generation
and injection with a secret.
Copy link
Copy Markdown
Owner

@squat squat left a comment

Choose a reason for hiding this comment

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

Nice catch. Before, this should have "worked" because we would overwrite the existing key with the same value, however, this doesn't work with read-only filesystems and is unnecessary.

@squat squat merged commit ba6b577 into squat:main Jan 31, 2023
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.

2 participants