Skip to content

Commit 3d6163c

Browse files
authored
Merge pull request #91617 from rh-tokeefe/OLS-1644
OLS-1644: api_token should be base64 encoded when used with data in s…
2 parents 83ff03e + a62da20 commit 3d6163c

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

modules/ols-creating-the-credentials-secret-using-cli.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,59 +35,63 @@ type: Opaque
3535
stringData:
3636
apitoken: <api_token> <1>
3737
----
38-
<1> The `apitoken` is not `base64` encoded.
38+
<1> The `api_token` is not `base64` encoded.
3939
+
4040
.Credential secret for {rhelai}
4141
[source,yaml,subs="attributes,verbatim"]
4242
----
4343
apiVersion: v1
4444
data:
45-
apitoken: <api_token>
45+
apitoken: <api_token> <1>
4646
kind: Secret
4747
metadata:
4848
name: rhelai-api-keys
4949
namespace: openshift-lightspeed
5050
type: Opaque
5151
----
52+
<1> The `api_token` must be `base64` encoded when stored in a secret.
5253
+
5354
.Credential secret for {rhoai}
5455
[source,yaml,subs="attributes,verbatim"]
5556
----
5657
apiVersion: v1
5758
data:
58-
apitoken: <api_token>
59+
apitoken: <api_token> <1>
5960
kind: Secret
6061
metadata:
6162
name: rhoai-api-keys
6263
namespace: openshift-lightspeed
6364
type: Opaque
6465
----
66+
<1> The `api_token` must be `base64` encoded when stored in a secret.
6567
+
6668
.Credential secret for {watsonx}
6769
[source,yaml,subs="attributes,verbatim"]
6870
----
6971
apiVersion: v1
7072
data:
71-
apitoken: <api_token>
73+
apitoken: <api_token> <1>
7274
kind: Secret
7375
metadata:
7476
name: watsonx-api-keys
7577
namespace: openshift-lightspeed
7678
type: Opaque
7779
----
80+
<1> The `api_token` must be `base64` encoded when stored in a secret.
7881
+
7982
.Credential secret for {azure-official} {openai}
8083
[source,yaml,subs="attributes,verbatim"]
8184
----
8285
apiVersion: v1
8386
data:
84-
apitoken: <api_token>
87+
apitoken: <api_token> <1>
8588
kind: Secret
8689
metadata:
8790
name: azure-api-keys
8891
namespace: openshift-lightspeed
8992
type: Opaque
9093
----
94+
<1> The `api_token` must be `base64` encoded when stored in a secret.
9195
+
9296
Alternatively, for {azure-openai} you can use {entra-id} to authenticate your LLM provider. {entra-id} users must configure the required roles for their {azure-openai} resource. For more information, see the official Microsoft link:https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/role-based-access-control#cognitive-services-openai-contributor[Cognitive Services OpenAI Contributor](Microsoft Azure OpenAI Service documentation).
9397
+

modules/ols-creating-the-credentials-secret-using-web-console.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,59 +37,63 @@ type: Opaque
3737
stringData:
3838
apitoken: <api_token> <1>
3939
----
40-
<1> The `apitoken` is not `base64` encoded.
40+
<1> The `api_token` is not `base64` encoded.
4141
+
4242
.Credential secret for {rhelai}
4343
[source,yaml,subs="attributes,verbatim"]
4444
----
4545
apiVersion: v1
4646
data:
47-
apitoken: <api_token>
47+
apitoken: <api_token> <1>
4848
kind: Secret
4949
metadata:
5050
name: rhelai-api-keys
5151
namespace: openshift-lightspeed
5252
type: Opaque
5353
----
54+
<1> The `api_token` must be `base64` encoded when stored in a secret.
5455
+
5556
.Credential secret for {rhoai}
5657
[source,yaml,subs="attributes,verbatim"]
5758
----
5859
apiVersion: v1
5960
data:
60-
apitoken: <api_token>
61+
apitoken: <api_token> <1>
6162
kind: Secret
6263
metadata:
6364
name: rhoai-api-keys
6465
namespace: openshift-lightspeed
6566
type: Opaque
6667
----
68+
<1> The `api_token` must be `base64` encoded when stored in a secret.
6769
+
6870
.Credential secret for {watsonx}
6971
[source,yaml, subs="attributes,verbatim"]
7072
----
7173
apiVersion: v1
7274
data:
73-
apitoken: <api_token>
75+
apitoken: <api_token> <1>
7476
kind: Secret
7577
metadata:
7678
name: watsonx-api-keys
7779
namespace: openshift-lightspeed
7880
type: Opaque
7981
----
82+
<1> The `api_token` must be `base64` encoded when stored in a secret.
8083
+
8184
.Credential secret for {azure-official} {openai}
8285
[source,yaml,subs="attributes,verbatim"]
8386
----
8487
apiVersion: v1
8588
data:
86-
apitoken: <api_token>
89+
apitoken: <api_token> <1>
8790
kind: Secret
8891
metadata:
8992
name: azure-api-keys
9093
namespace: openshift-lightspeed
9194
type: Opaque
9295
----
96+
<1> The `api_token` must be `base64` encoded when stored in a secret.
9397
+
9498
Alternatively, for {azure-openai} you can use {entra-id} to authenticate your LLM provider. {entra-id} users must configure the required roles for their {azure-openai} resource. For more information, see the official Microsoft link:https://learn.microsoft.com/en-us/azure/ai-services/openai/how-to/role-based-access-control#cognitive-services-openai-contributor[Cognitive Services OpenAI Contributor](Microsoft Azure OpenAI Service documentation).
9599
+

0 commit comments

Comments
 (0)