Git Product home page Git Product logo

Comments (4)

TJM avatar TJM commented on June 8, 2024

I wonder if there is a way to have it track that or run some sort of "onDelete" action? The "leases" (role tokens) were cleaned up, at least.

from vault-plugin-secrets-artifactory.

EvertonSA avatar EvertonSA commented on June 8, 2024

I think that already happen..

I have enabled the secret engine on my acceptance vault and now I want to disable:

/ $ vault secrets disable artifactory
Error disabling secrets engine at artifactory/: Error making API request.

URL: DELETE http://127.0.0.1:8200/v1/sys/mounts/artifactory
Code: 400. Errors:

* failed to revoke "artifactory/token/REDACT/...REDACT" (1 / 3): failed to revoke entry: resp: (*logical.Response)(nil) err: could not get the sytem version: HTTP response 401

the token on the mount is already revoked, so 401 is desirable.

if the token was valid, it would revoke it as far as I understand from the above.

from vault-plugin-secrets-artifactory.

alexhung avatar alexhung commented on June 8, 2024

I just start working on this. I'll check it out @EvertonSA and see if that's the case already.

from vault-plugin-secrets-artifactory.

alexhung avatar alexhung commented on June 8, 2024

@EvertonSA I was not able to replicate your result. When I disable the secrets engine, I got the following:

% vault secrets disable artifactory
Success! Disabled the secrets engine (if it existed) at: artifactory/

And the auth token in Artifactory still exists so I'm pretty sure it has not been revoked.

@TJM I have not able to find any way to intercept the unmount event. The closest I find is the clean function but that gets called on plugin exists. Not just on unmount.

Therefore, I am not seeing a way to automatically revoke the auth token on unmount at this point. I am closing this ticket but feel free to reopen if you learn something new.

from vault-plugin-secrets-artifactory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.