Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should DELETE artifactory/config/admin cleanup all leased tokens? #87

Open
TJM opened this issue Apr 25, 2023 · 3 comments
Open

Should DELETE artifactory/config/admin cleanup all leased tokens? #87

TJM opened this issue Apr 25, 2023 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@TJM
Copy link
Contributor

TJM commented Apr 25, 2023

If you DISABLE the plugin mount, vault will try to cleanup all the leased tokens.

However, if you vault delete artifactory/config/admin, we could potentially leave behind a bunch of leased (generated) tokens in Artifactory, which by default, never expire.

Should the plugin be cleaning all of those up?

I am wondering if we provide this "DELETE" endpoint, if that means that we need to code in the cleanup?

@TJM TJM changed the title Should DELETE /config/admin cleanup all leased tokens? Should DELETE artifactory/config/admin cleanup all leased tokens? Apr 25, 2023
@alexhung
Copy link
Member

On first read, this make senses. I'm trying to think through if there're other scenarios in which deleting any tokens in Artifactory is undesirable.

@TJM
Copy link
Contributor Author

TJM commented May 4, 2023

Right, I am not sure if it is even possible to do. I am not sure if we should even provide the endpoint. We should probably look at other plugins?

🤷

@TJM
Copy link
Contributor Author

TJM commented Jul 24, 2023

I think that any token it creates should be cleaned up, before deleting the admin config, there could maybe be an option to not do that?

@alexhung alexhung added enhancement New feature or request question Further information is requested labels Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants