-
Notifications
You must be signed in to change notification settings - Fork 14
Reduce creation minimum age to 1w temporarily. #2107
Conversation
This is intended to induce a key rotation. Once the key rotates once, we will revert this change.
Codecov ReportBase: 57.56% // Head: 57.56% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #2107 +/- ##
=======================================
Coverage 57.56% 57.56%
=======================================
Files 37 37
Lines 11655 11655
=======================================
Hits 6709 6709
Misses 4831 4831
Partials 115 115
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
This is part of addressing the ENPA key rotation issue. See #2107 discussion of the overall plan.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plan in conjunction with #2108 seems good. What do you think about using kubectl edit
in just one locality to set -create-min-age=168h
along with -dry-run
so that we can convince ourselves that applying this change in all localities will do what we want?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plan looks good to me.
If we wanted to test with one locality first, ta-ta
would be a good choice, as there's no data going through it. We could even drop the --dry-run
and check that it behaves as expected running the second time.
Indeed, testing is a great idea. My testing steps were (all via GCP web UI):
Everything worked as expected. LMK if y'all have any other testing in mind, I'm going to reach out to do one final check that others are ready for the key to rotate. |
This is part of addressing the ENPA key rotation issue. See #2107 discussion of the overall plan.
This is part of addressing the ENPA key rotation issue. See #2107 for discussion of the overall plan.
This is intended to induce a key rotation. Once the key rotates once, we will revert this change.
The current situation: the key versions are (
old
,bad
). Clients are submitting reports with bothold
&bad
key versions. Thebad
key version cannot be used by Apple due to a technical issue. We cannot immediately delete either key version as we expect to receive reports from both. Our goal is to introduce a new key version without deleting either existing key version.Overall plan:
bad
is more than 1w old, the key rotator will introduce a new key versionnew
. Asold
was generated on 1/3 (i.e. 9 months ago), anddelete_min_age
is 13 months, no key versions will be deleted.old
,bad
,new
) for the time being. On approximately 2/3/2023, the key rotator will removeold
& we will return to operating with only two key versions.