Loading
Commits on Source 12
-
Timo Furrer authored
Move the token exchange request, its response checks and the claims decoding out of internal/api/artifactregistry into a new internal/api/tokenexchange package that takes the audience as an argument. artifactregistry keeps its client, durations and behavior and delegates to it, so another audience can reuse the exchange instead of copying it. The shared test helpers move from artifactregistrytest to tokenexchangetest to match.
-
Timo Furrer authored
-
Timo Furrer authored
Start an AutoFlow workflow through Relay's public API. The command exchanges the caller's GitLab credential for a one-minute token for the gitlab-autoflow audience and calls StartWorkflow over gRPC with TLS. It prints the workflow key and token, which reading or canceling the workflow need, and the idempotency key and token binding, which re-submitting it needs. Both are random unless given with --idempotency-key and --token-binding. The command group is hidden: AutoFlow checks that a token is valid but not which namespaces its holder may use, and GitLab mints the token only for users with the token_exchange_autoflow_audience feature flag. This adds google.golang.org/grpc and the AutoFlow protos as dependencies. Relay serves no gRPC-Web or JSON transcoding, so gRPC is the only way to reach it.
-
Timo Furrer authored
-
Timo Furrer authored
-
Timo Furrer authored
-
Timo Furrer authored
-
Timo Furrer authored
-
Timo Furrer authored
-
Timo Furrer authored
feat(autoflow): add autoflow workflow commands See merge request !4322 Merged-by:
Timo Furrer <tfurrer@gitlab.com>
Approved-by: Mikhail Mazurskiy <mmazurskiy@gitlab.com> Approved-by:
Ahmed Hemdan <ahemdan@gitlab.com> Reviewed-by:
Mikhail Mazurskiy <mmazurskiy@gitlab.com> Reviewed-by:
Jay McCure <jmccure@gitlab.com> Reviewed-by:
GitLab Duo <gitlab-duo@gitlab.com>
-
Timo Furrer authored
-
Timo Furrer authored
chore(codeowners): add Relay maintainers as co-owners of the AutoFlow code See merge request gitlab-org/cli!4364 Merged-by:
Timo Furrer <tfurrer@gitlab.com>
Approved-by: GitLab Duo <gitlab-duo@gitlab.com> Approved-by:
Kai Armstrong <karmstrong@gitlab.com>