Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Flip the cleanup code lifetime values, document, & validate #1178

Merged
merged 2 commits into from
Nov 23, 2020

Conversation

whaught
Copy link
Contributor

@whaught whaught commented Nov 23, 2020

Proposed Changes

  • Reverses the values from code recycle / code purge
  • Validates that the time for recycle is shorter than purge
  • Add documentation

Release Note

Ensure code status is retained for 14 days, but the code itself is zeroed at 48h

@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Nov 23, 2020
// Their code/long_code hmac values will have been set to "".
func() {
defer observability.RecordLatency(ctx, time.Now(), mLatencyMs, &result, &item)
item = tag.Upsert(itemTagKey, "VERIFICATION_CODE")
if count, err := c.db.PurgeVerificationCodes(c.config.VerificationCodeMaxAge); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently this will purge at 48 hours. This will never be 'recycled' at 336 hours, because it's already gone.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mikehelmick, whaught

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [mikehelmick,whaught]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-robot google-oss-robot merged commit e3b3fd6 into google:main Nov 23, 2020
@whaught whaught deleted the cleanup-codes branch November 23, 2020 23:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants