You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/serverless-logic-security-config-auth-credentials-openapi.adoc
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,10 @@ The security schemes defined in an OpenAPI specification file are global to all
17
17
.Prerequisites
18
18
19
19
* You have access to a {ServerlessLogicProductName} project with the appropriate roles and permissions to create applications and other workloads in {ocp-product-title}.
20
-
* Your OpenAPI specification is defined in one or more security schemes.
20
+
* Your OpenAPI specification includes one or more security schemes.
21
21
* You have access to the OpenAPI specification files.
22
22
* You have identified the schemes you want to configure `http-basic-example` or `api-key-example`.
23
-
* You have access to the applicationproperties file, the workflow `ConfigMap`, or environment variable setup.
23
+
* You have access to the `application.properties` file, the workflow `ConfigMap`, or the `SonataFlow` CR.
24
24
25
25
.Procedure
26
26
@@ -31,16 +31,16 @@ The security schemes defined in an OpenAPI specification file are global to all
**`filename` is the sanitized name of the file containing the OpenAPI specification, such as security_example_json.
35
-
**`security_scheme_name` is the sanitized name of the security scheme object definition in the OpenAPI specification file, such as http_basic_example or api_key_example.
34
+
**`filename` is the sanitized name of the file containing the OpenAPI specification, such as security_example_json. To sanitize this name, you must replace all non-alphabetic characters with `_` underscores.
35
+
**`security_scheme_name` is the sanitized name of the security scheme object definition in the OpenAPI specification file, such as `http_basic_example` or `api_key_example`. To sanitize this name, you must replace all non-alphabetic characters with `_` underscores.
36
36
**`auth_property_name` is the name of the property to configure, such as username. This property depends on the defined security scheme type.
37
37
+
38
38
[NOTE]
39
39
====
40
40
When you are using environment variables to configure properties, follow the MicroProfile environment variable mapping rules. You can replace all non-alphabetic characters in the property key with underscores `_`, and convert the entire key to uppercase.
41
41
====
42
42
43
-
The following examples show how to provide these configuration properties using `application.properties`, a`ConfigMap` associated with your workflow, or environment variables defined in the `SonataFlow` CR:
43
+
The following examples show how to provide these configuration properties using `application.properties`, the`ConfigMap` associated with your workflow, or environment variables defined in the `SonataFlow` CR:
44
44
45
45
.Example of configuring the credentials by using the `application.properties` file
46
46
[source,text]
@@ -65,6 +65,11 @@ metadata:
65
65
namespace: example-namespace
66
66
----
67
67
68
+
[NOTE]
69
+
====
70
+
If the name of the workflow is `example-workflow`, the name of the `ConfigMap` with the user defined properties must be `example-workflow-props`.
71
+
====
72
+
68
73
.Example of configuring the credentials by using environment variables in the `SonataFlow` CR
0 commit comments