aws / aws/aws-secretsmanager-caching-java
Get secret with specific version ID
- Vorherrschende Sprache
- Java
- Sterne
- 83
- Forks
- 39
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently, the only way to retrieve a secret is by its ID with `SecretCache.getSecretString(secretId)`. There is no way to get a specific _version_ of a secret using its ID and versionId. One can build a `SecretCacheConfiguration` object and call `setVersionStage`, then pass that configuration to a `SecretCache` constructor; however, this still only allows retrieving a specific version of a secret by its Id and _stage_, and would require using the same stage for all secrets (unless constructing separate caches). It would be nice if `getSecretString` took an optional `versionId` string, so that we could use specific versionIds and not just version stages.
Beitragsleitfaden
Rechercherichtung
Beginne damit, SecretCache.getSecretString(secretId) und den im Issue genannten SecretCacheConfiguration.setVersionStage-Pfad nachzuverfolgen. Prüfe, wie der Cache-Konstruktor Versionen abruft, und verifiziere anschließend, dass eine optionale versionId eine einzelne Secret-Version unabhängig von gemeinsam genutzten Stages auswählen kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, java
- Bereich
- api, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100