Coder Social home page Coder Social logo

Comments (5)

Capitrium avatar Capitrium commented on August 27, 2024

Discussion continued here.

from vault-plugin-auth-kubernetes.

dacohen avatar dacohen commented on August 27, 2024

We're having this same problem in Vault v0.10.1. Even if the role has a period set, the issued token does not. The linked discussion above doesn't have a solution, and while it looks like there were some code changes since this discussion, it looks like this is still an issue.

What's the best way to work around this bug? Is there a fix available?

from vault-plugin-auth-kubernetes.

jefferai avatar jefferai commented on August 27, 2024

It's not a bug. Periods are only set directly on the token if the token was created via auth/token/create. Otherwise the period is controlled by the token issuer and its associated renew function.

from vault-plugin-auth-kubernetes.

dacohen avatar dacohen commented on August 27, 2024

In that case, what's the best way to generate periodic tokens using the Kubernetes auth backend?

The documentation (https://www.vaultproject.io/api/auth/kubernetes/index.html#create-role) seems to indicate that creating a role with a period should cause tokens issued using that role to have that period, but if I'm understanding your comment correctly, this doesn't seem to be the case.

from vault-plugin-auth-kubernetes.

jefferai avatar jefferai commented on August 27, 2024

When you create a token, does the TTL match the period value? When you renew it, does the TTL reset to the period value?

from vault-plugin-auth-kubernetes.

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.