Open rajdip-b opened 2 months ago
Hey I am Kartik Deshmukh. I am one of the participants in the FOSS Hack. We want to contribute to this issue and I feel confident my contribution will help! /attempt
/attempt
Assigned the issue to @NangunooriAbhinav!
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
.