Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

rotating access tokens#3207

Unanswered
walterrowe asked this question inQ&A
Discussion options

I had this idea for a utility that would search a list of projects, or all projects in a group, for access tokens and rotate them. The script would also look for CI variables that refer to the old token value and replace it with the new token value. It also would produce a nice report showing which tokens were referenced in what CI variables by what projects.

The challenge I face is that the object returned byproject.access_tokens.get() (seeGitLab Project Access Tokens API) doesn't include the current token secret value (likely for security reasons?). When we rotate a token we get the new token value, but we never see the prior token value. This makes it impossible to do what I envisioned.

Now that access tokens have mandatory expiration dates we are forced to rotate them periodically. It would be nice to have a utility that would aid in this tedious maintenance process.

Does anyone in the community, or the project developers, have a suggestion for working around this?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@walterrowe

[8]ページ先頭

©2009-2025 Movatter.jp