Skip to content

Conversation

IvanChalukov
Copy link
Contributor

Changes proposed by this PR

This PR, developed in collaboration with @Kump3r, addresses scenarios where Vault tokens cannot be self-renewed, such as Batch tokens. In our environment, over 2,000 pipelines across 60 teams use Batch Vault tokens to collect information. This results in millions of renewal attempts each month, all of which fail because Batch tokens are non-renewable.

  • ensure that vault token is renewable

Notes to reviewer

Service tokens and Batch tokens comparison could be found in Token type comparison

Release Note

  • Improved Vault token renewal logic to skip non-renewable tokens like Batch tokens, reducing unnecessary renewal attempts.

…ng renewal

Signed-off-by: IvanChalukov <ichalukov@gmail.com>
@IvanChalukov IvanChalukov requested a review from a team as a code owner May 27, 2025 11:51
@Kump3r Kump3r added the bug label May 27, 2025
Copy link
Contributor

@Kump3r Kump3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested the implementation with both Batch and service tokens:

  1. batch tokens are skipped after the lookup and never try to be renewed. After restart of the web additional lookup is done for each token, but again only once and no renew requests are done
  2. service tokens continue to work as before and we see a successful renew info log in the output logs. No further requests are made until the time duration requires a new retry request.
    We haven't executed any integration/unit tests as we failed to find such. Let us know if we just missed them and they need to be addressed.
    Good job @IvanChalukov and thanks for the PR!

@Kump3r Kump3r moved this from Todo to In Progress in Pull Requests May 28, 2025
@taylorsilva taylorsilva merged commit 2f202ed into concourse:master Jun 23, 2025
12 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Pull Requests Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants