API: Add secret rotation #315
Labels
difficulty: 2
foss hack
Clustering all the curated issues for Foss Hack 2024
good first issue
Good for newcomers
hacktoberfest
Hacktoberfest is on!
priority: medium
scope: api
Everything related to the API
type: feature
Release drafter tag for tagging PRs related to adding new features
Description
Secrets have a
rotateAfter
field. We would like to scan through all secrets and rotate the values. The values will be automatically generated. For now, we would like to run a cron job every 1 hour and rotate the values of the secrets conditionally.Criteria for autogenerated value:
a-z
A-Z
0-9
!@#$%^&*
Solution
rotatedAt
field in theSecret
model that will store the last time the values were rotatedsecret.service.ts
that will rotate the values.secretId-environmentId
pair inSecretVersion
where theSecret
hasrotateAfter != never
andcurrentTime > rotatedAt+rotateAfter
.The text was updated successfully, but these errors were encountered: