Skip to content
Snippets Groups Projects

feat: rotate personal, project or group access tokens

1 unresolved thread
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

Description

Add support for rotating personal, project and group access tokens.

Related Issues

Supplements #980 (closed)

How has this been tested?

unit tests were added and all commands were tested manually. I do not have a private installation of gitlab, so I could not test the creation of personal access tokens for other users.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Timo Furrer

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Greg Alfaro
  • Greg Alfaro resolved all threads

    resolved all threads

  • Greg Alfaro approved this merge request

    approved this merge request

  • Kai Armstrong requested review from @jay_mccure and removed review request for @amknight

    requested review from @jay_mccure and removed review request for @amknight

  • Hi @mvanholsteijn thanks for contributing all these additional features for tokens :raised_hands:

    As per !1583 (comment 2073824411) I have made this MR dependant on !1640 (merged) & !1641 (merged) and will review once they are merged :bow:

  • added 16 commits

    • 778f8c36...64104902 - 6 earlier commits
    • 385dae7b - chore: Apply 1 suggestion(s) to 1 file(s)
    • 1252e7f7 - chore: regenerated the documentation
    • 76df3708 - Merge branch 'feat/token-support-step-1-create' into feat/token-support-step-2-revoke
    • 0d93bf06 - chore: user messages changed according the edits of @aqualls
    • b5c4ea1f - chore: json output unformatted
    • 8dac6910 - chore: generated docs
    • 96cd6188 - chore: changed alias from tok to token as suggested by @jamesliu-gitlab
    • 602d8bde - chore: make gen-docs
    • dec16265 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate
    • cf58f5a7 - chore: user messages changed according the edits of @aqualls

    Compare with previous version

  • Mark van Holsteijn mentioned in merge request !1642 (merged)

    mentioned in merge request !1642 (merged)

  • please merge after !1641 (merged)

  • added 6 commits

    • c20b568c - fix: time.Duration parses only hours
    • f3c047be - Merge branch 'feat/token-support-step-1-create' into feat/token-support-step-2-revoke
    • 8e7950d6 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate
    • 5665d905 - fix: time.Duration parses only hours
    • ad6b428c - refactor: remove unused function CreateAccessLevelFromString
    • 5573d957 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate

    Compare with previous version

  • added 2 commits

    • 5cd689eb - fix: test for access level after refactor
    • 2d3cffec - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate

    Compare with previous version

  • Mark van Holsteijn resolved all threads

    resolved all threads

  • added 55 commits

    • 2d3cffec...4e1597be - 53 commits from branch gitlab-org:main
    • bc1bd0a6 - Merge branch 'org-main' into feat/token-support-step-2-revoke
    • 2f3539ad - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate

    Compare with previous version

  • added 3 commits

    • 09197ac0 - fix: restored token.go
    • b25f2974 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate
    • 4b7650e0 - fix: restored token.go

    Compare with previous version

  • added 1 commit

    • 27ed577e - fix: add all subcommands to token group

    Compare with previous version

  • added 1 commit

    • c63df8cb - fix: add all subcommands to token group

    Compare with previous version

  • Hi @aqualls! Please review this documentation merge request. This message was generated automatically. You're welcome to improve it.

  • requested review from @aqualls

  • @aqualls @truegreg @jay_mccure, this Community contribution is ready for review.

    • Do you have capacity and domain expertise to review this? If not, find one or more reviewers and assign to them.
    • If you've reviewed it, add the workflowin dev label if these changes need more work before the next review.

    This message was generated automatically. You're welcome to improve it.

  • Amy Qualls
  • I have tiny fixes for various strings, but I don't want to force another round of review. As long as they're applied, I'm satisfied.

    Approving.

  • Amy Qualls approved this merge request

    approved this merge request

  • Amy Qualls mentioned in merge request !1641 (merged)

    mentioned in merge request !1641 (merged)

  • added 5 commits

    • 35390e61 - fix: add revoke command to token group
    • f07da6cb - fix by @viktomas
    • ebfab3d5 - chore: Apply 1 suggestion(s) to 1 file(s)
    • 86715953 - chore: generate docs
    • ac11add4 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate

    Compare with previous version

  • added 2 commits

    • b576815d - fix: duration can only be in hours
    • 36cfab58 - Merge branch 'feat/token-support-step-2-revoke' into origin/feat/token-support-step-3-rotate

    Compare with previous version

  • added 1 commit

    • 303193a0 - fix: duration can only be in hours

    Compare with previous version

  • added 1 commit

    • e0ca1131 - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • cc90abdb - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • aee09506 - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • f65d748f - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 5e18cb9b - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    • 6ea1a3b0 - chore: Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • Mark van Holsteijn resolved all threads

    resolved all threads

  • added 42 commits

    • 26bb72ec...e8951334 - 41 commits from branch gitlab-org:main
    • b14da735 - Merge branch 'org-main' into feat/token-support-step-3-rotate

    Compare with previous version

  • Mark van Holsteijn resolved all threads

    resolved all threads

  • added 3 commits

    Compare with previous version

  • Jay McCure
  • Amy Qualls requested review from @jay_mccure

    requested review from @jay_mccure

  • Jay McCure
  • added 1 commit

    • eafb310d - fix: add newline when printing token

    Compare with previous version

  • Mark van Holsteijn resolved all threads

    resolved all threads

  • added 1 commit

    • 0ae36ddc - fix: test for token with newline

    Compare with previous version

  • Jay McCure approved this merge request

    approved this merge request

  • Great work @mvanholsteijn, thank you so much for this contribution :raised_hands: :tada:

  • Reviewer roulette

    Changes that require review have been detected! A merge request is normally reviewed by both a reviewer and a maintainer in its primary category and by a maintainer in all other categories.

    To spread load more evenly across eligible reviewers, Danger has picked a candidate for each review slot. Feel free to override these selections if you think someone else would be better-suited or use the GitLab Review Workload Dashboard to find other available reviewers.

    To read more on how to use the reviewer roulette, please take a look at the Engineering workflow and code review guidelines. Please consider assigning a reviewer or maintainer who is a domain expert in the area of the merge request.

    Once you've decided who will review this merge request, mention them as you normally would! Danger does not automatically notify them for you.

    Reviewer Maintainer
    @amknight profile link current availability (UTC-4) @jay_mccure profile link current availability (UTC+10)

    Generated by :no_entry_sign: Danger

  • Jay McCure mentioned in commit 470df3b4

    mentioned in commit 470df3b4

  • merged

  • @mvanholsteijn, how was your code review experience with this merge request? Please tell us how we can continue to iterate and improve:

    1. React with a :thumbsup: or a :thumbsdown: on this comment to describe your experience.
    2. Create a new comment starting with @gitlab-bot feedback below, and leave any additional feedback you have for us in the comment.

    As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo. With Code Suggestions, Chat and more AI-powered features, GitLab Duo helps to boost your efficiency and effectiveness by reducing the time required to write and understand code. Visit the Duo access project to request a GitLab Duo license and learn more about the benefits of GitLab Duo.

    Subscribe to the GitLab Community Newsletter for contributor-focused content and opportunities to level up.

    Thanks for your help! :heart:

    This message was generated automatically. You're welcome to improve it.

  • Please register or sign in to reply
    Loading