-
Notifications
You must be signed in to change notification settings - Fork 236
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
How to persist Jenkins API token? #454
Comments
Hello @dene14, as part of our roadmap we'll be partitioning everything into smaller custom resources, then many authorisation mechanisms will be available. Until then there's not much you can do, but it's our priority so please, stay tuned :) |
@dene14 did you find any work around for this? We are running into the same issue with needing to persist user tokens when pods get recreated. |
As a workaround we've added mountpoint for this directory, volumeMounts looks as follows:
|
related to #495 do you think, is there any way we can temporarily fix it? until the new API schema will be introduced. |
Not sure if this can help you, but here's what we do to persist users:
backup.sh
restore.sh
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still affecting you, just comment with any updates and we'll keep it open. Thank you for your contributions. |
Thank you all for your contributions. Unfortunately this won't be worked on for a while since currently we're facing more pressing matters concerning new API schema and Jenkins API Token persistence might not make it to the roadmap for some time |
Is there now a way in Jenkins to persist PATs over restarts? Some of the benefit to having configuration-as-code is lost when our CI pipeline has to be modified with a new token every time the container restarts. Thanks! |
this is working: #454 (comment) |
also check: #691 |
Expected Behavior
We need a way to persist user token or pre-create it somehow.
Actual Behavior
User auth set up with LDAP, user creates API token for himself, after jenkins restart (pod recreation) token invalidated.
Any guidance/workaround is highly welcome! Thanks!
The text was updated successfully, but these errors were encountered: