Skip to content

Add creating and saving new secrets#10

Merged
aarongable merged 2 commits into
mainfrom
seedgen
Jul 28, 2025
Merged

Add creating and saving new secrets#10
aarongable merged 2 commits into
mainfrom
seedgen

Conversation

@aarongable
Copy link
Copy Markdown
Contributor

@aarongable aarongable commented Jul 23, 2025

If the secret retrieved from AWS is empty, and today is the log's "inception date" (a Sunlight-specific concept), go ahead and create and save a new seed for this log. Don't create a new seed if the inception date is in the past: theoretically, one should have already been made, so the fact that it's missing is more indicative of an error of some sort, and we don't want one log to run with two different seeds (i.e. two different signing keys). Don't create a new seed if the inception date is in the future: Sunlight itself will error out in this case, so we should never be committing configs with inception dates in the future anyway.


Warning

Do not merge before #9

@aarongable aarongable force-pushed the refactor branch 5 times, most recently from 94eccc3 to 078bb20 Compare July 23, 2025 21:52
@aarongable aarongable force-pushed the seedgen branch 2 times, most recently from 968ddce to c71db8d Compare July 23, 2025 23:38
Comment thread cmd/sunlight-secretmanager/main.go Outdated
@aarongable aarongable requested a review from mcpherrinm July 26, 2025 00:17
Base automatically changed from refactor to main July 28, 2025 16:11
mcpherrinm
mcpherrinm previously approved these changes Jul 28, 2025
@aarongable aarongable dismissed mcpherrinm’s stale review July 28, 2025 16:14

The merge-base changed after approval.

@aarongable aarongable requested a review from mcpherrinm July 28, 2025 16:14
@aarongable aarongable marked this pull request as ready for review July 28, 2025 16:31
@aarongable aarongable merged commit 1ccfa60 into main Jul 28, 2025
1 check passed
@aarongable aarongable deleted the seedgen branch July 28, 2025 17:14
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