Skip to main content

Crate secrets_engine_gitlab

Crate secrets_engine_gitlab 

Source
Expand description

GitLab project and group access tokens — mintable and revocable through the API, but with expiry that GitLab only accepts as a date. There is no such thing as a fifteen-minute GitLab token, so this engine keeps two clocks: it asks GitLab for the nearest possible date as a backstop, and holds the real deadline in the lease, where the reaper can enforce it to the second.

See docs/delegation/gitlab.md for the mechanism and docs/delegation/setup/gitlab.md for the operator walkthrough.

Structs§

GitlabConfig
How the server authenticates to GitLab. private_token is an Owner-level PAT (or an admin PAT for instance-wide work) and is never read back out.
GitlabEngine
RoleConfig
What one consumer may mint.

Enums§

Resource
Whether a role mints a project- or group-scoped token. Group tokens reach every project in the group, so prefer Project unless the consumer really needs the breadth.