Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

How to list secrets that are mark delete in secretsmanager #35

Closed
gabsg opened this issue Dec 29, 2020 · 5 comments
Closed

How to list secrets that are mark delete in secretsmanager #35

gabsg opened this issue Dec 29, 2020 · 5 comments
Assignees
Labels
feature-request New feature or request response-requested This issue requires a response to continue secretsmanager

Comments

@gabsg
Copy link

gabsg commented Dec 29, 2020

Confirm by changing [ ] to [x] below:

Describe the question

I could not find anyway stated in the docs on how to list aws scecrets that are marked deleted?
Someone in stackoverflow had post the same question.
https://stackoverflow.com/questions/65038240/aws-secretsmanager-list-deleted-secrets

@KaibaLopez
Copy link

Hi @gabsg ,
That is not really supported by the API.
Marking for deletion is a console thing and so is allowing them on the list.... When marked for deletion via the console it will be considered as deleted by the SDKs and the CLI... this means that they can be restored but not seen as part of the list secrets request.
Here's a bit more info on the subject if you're interested.

@KaibaLopez KaibaLopez self-assigned this Dec 30, 2020
@maclarensg
Copy link

@KaibaLopez thanks for you prompt reply,

Pardon me, I have yet another question. I wonder why it could not be supported within the API. I recently had issues where I've deleted some secrets (marked deleted) but want to restore them back later.
So unless I knew the secretID, which I did not track at that time, I cannot restore them back. So if this is supported, it will be very convenient .

@KaibaLopez
Copy link

@maclarensg ,
My bad, it could be a feature request to consider, it just wouldn't be on the SDK... I can transfer this issue to the proper github repo, but that might take a while to get worked on, your best bet is to also go to Premium support and/or the aws forums.
Currently the only way you get to see the information on deleted or marked for deletion secrets without the ID is through the console (under preferences check "Show secrets scheduled for deletion" box).
Secrets manager kind of expects you to keep track of your secret IDs specially when deleting if you're thinking to maybe restoring them.

@KaibaLopez KaibaLopez transferred this issue from aws/aws-sdk-go Jan 5, 2021
@jmklix jmklix added the feature-request New feature or request label Feb 8, 2021
@peterwoodworth
Copy link
Contributor

Hey @maclarensg have you been able to follow up with premium support or aws forums?

@peterwoodworth peterwoodworth added the response-requested This issue requires a response to continue label Sep 22, 2021
@peterwoodworth peterwoodworth self-assigned this Sep 22, 2021
@github-actions
Copy link

github-actions bot commented Mar 7, 2022

This issue is now closed.

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request New feature or request response-requested This issue requires a response to continue secretsmanager
Projects
None yet
Development

No branches or pull requests

5 participants