Skip to content

Resolve "Frontend: Create and update rotation for secrets"

What does this MR do and why?

This MR enables the secret rotation reminder value to be created/updated for a given secret from the frontend. A simple input field in the secrets creation/update form accepts an integer value for the rotation period representing the number of days before a rotation reminder is triggered.

There was a pre-existing UI for the secrets rotation reminder input that utilized CRON syntax, however it was created pre-emptively and was non functional. Because the backend implementation for secrets rotation differed from the expectations of that pre-existing UI, it has been removed here and replaced.

References

These UI changes relate to the backend changes in: #555420 (closed)

Screenshots or screen recordings

BEFORE:

image image

AFTER:

image

How to set up and validate locally

Requires openbao running in GDK & secrets_manager flag enabled

  1. With the secrets manager enabled, create a new secret
  2. Enter a valid value for the rotation period
  3. Save the secret
  4. Verify the previously set value shows up when trying to edit the secret

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #472982 (closed)

Merge request reports

Loading