Skip to content

feat: store authentication identifier in attestation #2127

@migmartri

Description

@migmartri

This task involves storing in the attestation information what kind of authentication was used and its identifier.

Today, an attestation process can be authenticated via user token, API tokens, or federated tokens (OIDC token in GitLab)

I could think of

type identifier
USER UserID
API_TOKEN TokenID
FEDERATED_GITLAB_TOKEN tokenID

note that this information should be inside the claims of the JWT tokens. For example, see below an example of a user token

Image

or a Chainloop API token

Image

Once we have this information, it could be rendered in the attestation json file maybe in a auth json message in the predicate, for example

{
  "predicate": {
    "auth": {
      "kind": "USER"
      "id": "deadbeef"
    } 
}

What do you think?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions