Skip to content

The test project has +400 secrets due to testing that need to be cleaned up #9643

@parthea

Description

@parthea

Transferring this issue from googleapis/python-secret-manager#55

This issue is related to the samples for secretmanager here.

The test project has +2000 secrets due to testing that need to be cleaned up. Tests should be reviewed for proper clean up.

https://cloud.google.com/secret-manager/docs/creating-and-managing-expiring-secrets adds a feature to set a TTL on the Secret resource which schedules the secret for deletion.

Another alternative is a test case that just lists and deletes secrets older a predefined duration.

The issue is several years old, although there are still a large number of secrets (>400) that could be cleaned up during testing.

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions