Spring / Spring CredHub Interview questions
Explain the lifecycle of a generated credential in CredHub?
A generated credential moves through a fairly linear lifecycle, and Spring CredHub exposes a method for each stage:
The key detail that shapes this whole lifecycle is that CredHub remembers how a value was generated, not just the value itself. That's why regenerate() can produce a new password of the same length and character rules, or a new certificate with the same subject and key usage, without the caller repeating any parameters.
Each regeneration doesn't erase the previous value; it becomes an older version accessible through getByNameWithHistory(), which is what lets a consumer briefly accept both the old and new value during a rolling deployment before the old one is finally deleted.
More Related questions...