Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Classic OIDC feedback#828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
NimRegev merged 13 commits intomasterfromclassic-oidc-feedback
Oct 15, 2023
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
Show all changes
13 commits
Select commitHold shift + click to select a range
f16150a
Update gitops-abac.md
NimRegevOct 9, 2023
b32ab82
Update oidc-pipelines.md
NimRegevOct 9, 2023
6941ab3
Merge branch 'master' into classic-oidc-feedback
NimRegevOct 9, 2023
f81e6ef
Update oidc-pipelines.md
NimRegevOct 9, 2023
5e6731d
Merge branch 'classic-oidc-feedback' of https://github.com/codefresh-…
NimRegevOct 9, 2023
80a8622
Update screenshots
NimRegevOct 10, 2023
62baa26
Update screenshots
NimRegevOct 10, 2023
d4e3f28
Update oidc-pipelines.md
NimRegevOct 12, 2023
61ab9f9
Merge branch 'master' into classic-oidc-feedback
NimRegevOct 12, 2023
2365521
Update add-cf-identity-provider.png
NimRegevOct 12, 2023
ed746a4
Merge branch 'classic-oidc-feedback' of https://github.com/codefresh-…
NimRegevOct 12, 2023
a6116b0
Update oidc-pipelines.md
NimRegevOct 12, 2023
6e91f9b
Update oidc-pipelines.md
NimRegevOct 15, 2023
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
25 changes: 19 additions & 6 deletions_docs/integrations/oidc-pipelines.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -186,23 +186,36 @@ max-width="60%"
%}



**What does the`obtain-oidc-id-token` Marketplace step do?**

The step:

1. Makes an API call to the Codefresh OIDC provider passing the`CF_OIDC_REQUEST_TOKEN` and the`CF_OIDC_REQUEST_URL`.
<!--- These two variables are injected into each build of the pipeline.-->
1. Makes an API call to the Codefresh OIDC provider passing the`CF_OIDC_REQUEST_TOKEN` and the`CF_OIDC_REQUEST_URL` variables.

>**NOTE**:
Codefresh injects these two variables for every pipeline build, ensuring their availability for use, regardless of the cloud provider's authentication mechanism, whether it's OIDC ID tokens or static credentials.


Example:
`curl -H "Authorization: $CF_OIDC_REQUEST_TOKEN" "$CF_OIDC_REQUEST_URL"`
where:
*`CF_OIDC_REQUEST_TOKEN` isa Codefreshaccess token used to request the OIDC ID token for the OIDC provider.
*`CF_OIDC_REQUEST_URL` is the URL from which the ID token is requested.
*`CF_OIDC_REQUEST_TOKEN` isanaccess token used to request the OIDC ID token for the OIDC provider.
*`CF_OIDC_REQUEST_URL` is the URL from whichto requestthe ID token.

You can also insert the`curl` command as an API call in a freestyle step to get the same result.

{:start="2"}
1. Sets the ID token in the`ID_TOKEN` environment variable.
You can use this environment variable in subsequent steps within the same pipeline.

>**Use API call in freestyle step**
You can also insert the`curl` command in a freestyle step to get the same result.
<br>

**Requesting new OIDC ID tokens during build**
* OIDC ID tokens expire after five minutes. If needed, you can request new OIDC ID tokens multiple times within the same pipeline, through the`obtain-oidc-id-token` step, or within a`freestyle` step with an API call.

* The`CF_OIDC_REQUEST_TOKEN` variable with the request token remains valid for the duration of the pipeline build. This restriction maintains security as requests for new OIDC tokens are limited to the build’s lifecycle.


<br><br>

Expand Down
Binary file modifiedimages/pipeline/oidc/add-cf-identity-provider.png
View file
Open in desktop
Loading
Sorry, something went wrong.Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

[8]ページ先頭

©2009-2025 Movatter.jp