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

Commit643d874

Browse files
authored
Classic OIDC feedback (#828)
* Update gitops-abac.md* Update oidc-pipelines.mdPartial implementation of feedback from Daniel Soifer* Update oidc-pipelines.md* Update screenshotsBlurred all details in screenshots* Update screenshots* Update oidc-pipelines.mdImplemented more feedback from Daniel S* Update add-cf-identity-provider.png* Update oidc-pipelines.md* Update oidc-pipelines.md
1 parent251b6cc commit643d874

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

‎_docs/integrations/oidc-pipelines.md‎

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,23 +186,36 @@ max-width="60%"
186186
%}
187187

188188

189+
189190
**What does the`obtain-oidc-id-token` Marketplace step do?**
190191

191192
The step:
192193

193-
1. Makes an API call to the Codefresh OIDC provider passing the`CF_OIDC_REQUEST_TOKEN` and the`CF_OIDC_REQUEST_URL`.
194-
<!--- These two variables are injected into each build of the pipeline.-->
194+
1. Makes an API call to the Codefresh OIDC provider passing the`CF_OIDC_REQUEST_TOKEN` and the`CF_OIDC_REQUEST_URL` variables.
195+
196+
>**NOTE**:
197+
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.
198+
199+
195200
Example:
196201
`curl -H "Authorization: $CF_OIDC_REQUEST_TOKEN" "$CF_OIDC_REQUEST_URL"`
197202
where:
198-
*`CF_OIDC_REQUEST_TOKEN` isa Codefreshaccess token used to request the OIDC ID token for the OIDC provider.
199-
*`CF_OIDC_REQUEST_URL` is the URL from which the ID token is requested.
203+
*`CF_OIDC_REQUEST_TOKEN` isanaccess token used to request the OIDC ID token for the OIDC provider.
204+
*`CF_OIDC_REQUEST_URL` is the URL from whichto requestthe ID token.
200205

206+
You can also insert the`curl` command as an API call in a freestyle step to get the same result.
207+
208+
{:start="2"}
201209
1. Sets the ID token in the`ID_TOKEN` environment variable.
202210
You can use this environment variable in subsequent steps within the same pipeline.
203211

204-
>**Use API call in freestyle step**
205-
You can also insert the`curl` command in a freestyle step to get the same result.
212+
<br>
213+
214+
**Requesting new OIDC ID tokens during build**
215+
* 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.
216+
217+
* 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.
218+
206219

207220
<br><br>
208221

-12.5 KB
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp