Skip to content

Deploy tokens don't return token username #172

@mbalko

Description

@mbalko

Hey there,
one more thing, when generating new deploy tokens, GitLab always creates a distinct username in form of gitlab+deploy-token-<number>, which must be supplied when using the deploy token. When generating new deploy token in Vault, there is no username returned:

[root@vault ~]# vault write -f gitlab-token/token/deploy-test
Key                Value
---                -----
lease_id           gitlab-token/token/deploy-test/...
lease_duration     1h
lease_renewable    false
access_level       n/a
created_at         2025-03-19T12:44:56.483161519Z
expires_at         2025-03-19T13:44:56.254079615Z
name               vault-test-9f7a70db
path               test/project
role_name          deploy-test
scopes             [read_repository]
token              gldt-...

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions