Skip to content

Commit 925f7f5

Browse files
themr0cGitHub Actions
authored andcommitted
RHIDP-5491 configure expiry on refresh token cookie (#899)
Signed-off-by: Fabrice Flore-Thébault <[email protected]> Update docs to refer to new secret name RHIDP-6130 Update docs to refer to new secret name RHIDP-6130 Update docs to refer to new secret name
1 parent 78e21c3 commit 925f7f5

6 files changed

+55
-11
lines changed

modules/authentication/proc-enabling-authentication-with-github.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,20 @@ auth:
161161
----
162162
////
163163

164+
`sessionDuration`::
165+
Lifespan of the user session.
166+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
167+
+
168+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
169+
[source,yaml,subs="+quotes"]
170+
----
171+
auth:
172+
providers:
173+
github:
174+
production:
175+
sessionDuration: { hours: 24 }
176+
----
177+
164178
[TIP]
165179
====
166180
To enable GitHub integration with a different authentication provider, complete the following configurations:

modules/authentication/proc-enabling-authentication-with-microsoft-azure.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@ auth:
133133
additionalScopes:
134134
- Mail.Send
135135
----
136+
137+
`sessionDuration`::
138+
Lifespan of the user session.
139+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
140+
+
141+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
142+
[source,yaml,subs="+quotes"]
143+
----
144+
auth:
145+
providers:
146+
microsoft:
147+
production:
148+
sessionDuration: { hours: 24 }
149+
----
150+
136151
--
137152

138153
[NOTE]

modules/authentication/proc-enabling-authentication-with-rhbk.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,20 @@ auth:
163163
----
164164
--
165165

166+
`sessionDuration`::
167+
Lifespan of the user session.
168+
Enter a duration in `ms` library format (such as '24h', '2 days'), ISO duration, or "human duration" as used in code.
169+
+
170+
.`app-config-rhdh.yaml` fragment with optional `sessionDuration` field
171+
[source,yaml,subs="+quotes"]
172+
----
173+
auth:
174+
providers:
175+
github:
176+
production:
177+
sessionDuration: { hours: 24 }
178+
----
179+
166180
`auth.backstageTokenExpiration`::
167181
--
168182
To modify the {product-short} token expiration from its default value of one hour, note that this refers to the validity of short-term cryptographic tokens, not the session duration. The expiration value must be set between 10 minutes and 24 hours.

modules/configuring-external-databases/proc-configuring-postgresql-instance-using-helm.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ EOF
7676

7777
. Configure your PostgreSQL instance in the Helm configuration file named `values.yaml`:
7878
+
79-
[source,yaml, subs="+attributes"]
79+
[source,yaml,subs="+quotes,+attributes"]
8080
----
8181
# ...
8282
upstream:
@@ -136,11 +136,11 @@ upstream:
136136
name: dynamic-plugins
137137
optional: true
138138
name: dynamic-plugins
139-
- name: dynamic-plugins-npmrc
139+
- name: `_<release_name>_-dynamic-plugins-npmrc`
140140
secret:
141141
defaultMode: 420
142142
optional: true
143-
secretName: dynamic-plugins-npmrc
143+
secretName: `_<release_name>_-dynamic-plugins-npmrc`
144144
- name: postgres-crt
145145
secret:
146146
secretName: {my-product-database-certificates-secrets} <7>

modules/dynamic-plugins/proc-install-plugins-using-custom-npm-registry.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
You can install external plugins in an air-gapped environment by setting up a custom NPM registry.
77

8-
You can configure the NPM registry URL and authentication information for dynamic plugin packages using a Helm chart. For dynamic plugin packages obtained through `npm pack`, you can use a `.npmrc` file.
8+
You can configure the NPM registry URL and authentication information for dynamic plugin packages using a Helm chart. For dynamic plugin packages obtained through `npm pack`, you can use a `.npmrc` file.
99

10-
Using the Helm chart, add the `.npmrc` file to the NPM registry by creating a secret named `dynamic-plugins-npmrc` with the following content:
10+
Using the Helm chart, add the `.npmrc` file to the NPM registry by creating a secret. For example:
1111

12-
[source,yaml]
12+
[source,yaml,subs="+quotes,+attributes"]
1313
----
1414
apiVersion: v1
1515
kind: Secret
1616
metadata:
17-
name: dynamic-plugins-npmrc
17+
name: `_<release_name>_-dynamic-plugins-npmrc`
1818
type: Opaque
1919
stringData:
2020
.npmrc: |

modules/dynamic-plugins/proc-load-plugin-js-package.adoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,25 +43,26 @@ registry=<registry-url>
4343
. When using {ocp-short} or Kubernetes:
4444
+
4545
--
46-
* Create a secret with the `.npmrc` content as follows:
46+
* Use the Helm chart to add the `.npmrc` file by creating a secret. For example:
4747
+
4848
.Example secret configuration
49-
[source,yaml]
49+
[source,yaml,subs="+quotes,+attributes"]
5050
----
5151
apiVersion: v1
5252
kind: Secret
5353
metadata:
54-
name: dynamic-plugins-npmrc
54+
name: `_<release_name>_-dynamic-plugins-npmrc` # <1>
5555
type: Opaque
5656
stringData:
5757
.npmrc: |
5858
registry=<registry-url>
5959
//<registry-url>:_authToken=<auth-token>
6060
----
61+
<1> Replace `_<release_name>_` with your Helm release name. This name is a unique identifier for each chart installation in the Kubernetes cluster.
6162

6263
* For {product-very-short} Helm chart, name the secret using the following format for automatic mounting:
6364
+
64-
`<release-name>-dynamic-plugins-npmrc`
65+
`_<release_name>_-dynamic-plugins-npmrc`
6566
--
6667

6768
. To apply the changes, restart the {product-very-short} application.

0 commit comments

Comments
 (0)