Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions config/identity/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ define:
- &gitlab-type "gitlab-pipeline"
- &codefresh-type "codefresh-workflow"
- &buildkite-type "buildkite-job"
- &circleci-type "circleci-job"
oidc-issuers:
https://accounts.google.com:
issuer-url: https://accounts.google.com
Expand Down Expand Up @@ -262,3 +263,21 @@ ci-issuer-metadata:
# build_source: Event that triggered this workflow run. (valid values: api, ui, webhook, trigger_job, schedule)
build-trigger: "build_source"
subject-alternative-name-template: "{{.url}}/{{.organization_slug}}/{{.pipeline_slug}}" # seems correct, do we still need the code in pkg/identity/buildkite/principal.go ?
*circleci-type:
default-template-values:
# principal gives priority to the claimed value over the default
api_url: "https://circleci.com/api/v2"
runner_environment: ""
extension-templates:
# NOTE: Because of how the text/template parsing works with / and . characters,
# we use " inside our template fragments which is why we use ' to wrap

# this API call leads back to the exact generated config used for this run
build-config-uri: '{{.api_url}}/pipeline/{{(index . "oidc.circleci.com/pipeline-id")}}/config'
# this API call leads back to the definition of the pipeline used for this run
# https://circleci.com/api/v2/projects/{project_id}/pipeline-definitions/{pipeline_definition_id}
build-signer-uri: '{{.api_url}}/projects/{{(index . "oidc.circleci.com/project-id")}}/pipeline-definitions/{{(index . "oidc.circleci.com/pipeline-definition-id")}}'
runner-environment: '{{if eq (index . "oidc.circleci.com/ssh-rerun") "true"}}ssh-rerun{{ else }}""{{end}}'
source-repository-ref: '{{index . "oidc.circleci.com/vcs-ref"}}'
source-repository-uri: '{{index . "oidc.circleci.com/vcs-origin"}}'
subject-alternative-name-template: '{{.api_url}}/projects/{{(index . "oidc.circleci.com/project-id")}}/pipeline-definitions/{{(index . "oidc.circleci.com/pipeline-definition-id")}}'
Loading