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: docs/src/main/asciidoc/_configprops.adoc
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,19 @@
4
4
|===
5
5
|Name | Default | Description
6
6
7
-
|spring.cloud.oci.config.profile | `DEFAULT` |
8
-
|spring.cloud.oci.config.file | |
9
-
|spring.cloud.oci.config.type | |
10
-
|spring.cloud.oci.config.userId | |
11
-
|spring.cloud.oci.config.tenantId | |
12
-
|spring.cloud.oci.config.fingerprint | |
13
-
|spring.cloud.oci.config.privateKey | |
14
-
|spring.cloud.oci.config.passPhrase | |
15
-
|spring.cloud.oci.config.region | |
16
-
|spring.cloud.oci.region.static | |
17
-
|spring.cloud.oci.compartment.static | |
18
-
|spring.cloud.oci.storage.enabled | `true` |
19
-
|spring.cloud.oci.notification.enabled | `true` |
20
-
|spring.cloud.oci.logging.enabled | `true` |
7
+
|spring.cloud.oci.config.profile | `DEFAULT` | Name of the profile in OCI Auth config file
8
+
|spring.cloud.oci.config.file | NA | Location of the OCI Auth config file
9
+
|spring.cloud.oci.config.type | FILE | Config/Auth type to be used. Allowed values are FILE, SIMPLE, INSTANCE_PRINCIPAL and RESOURCE_PRINCIPAL
10
+
|spring.cloud.oci.config.userId | NA | OCID of the user used for creating the API key. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
11
+
|spring.cloud.oci.config.tenantId | NA | Tenancy OCID where the API key is created. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
12
+
|spring.cloud.oci.config.fingerprint | NA | Fingerprint for the public key that was added to the user mentioned in `spring.cloud.oci.config.userId`. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
13
+
|spring.cloud.oci.config.privateKey | NA | Full path and filename of the private key used for generating the `spring.cloud.oci.config.fingerprint`. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
14
+
|spring.cloud.oci.config.passPhrase | NA | Passphrase used for `spring.cloud.oci.config.privateKey`, if it is encrypted. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
15
+
|spring.cloud.oci.config.region | NA | An OCI region which will be used for Authentication. This is needed only if spring.cloud.oci.config.type is `SIMPLE`
16
+
|spring.cloud.oci.region.static | NA | An OCI region which will be used for making API calls. This will take precedence over `spring.cloud.oci.config.region`
17
+
|spring.cloud.oci.compartment.static | NA | Default OCI Compartment OCID
18
+
|spring.cloud.oci.storage.enabled | `true` | Flag to enable the OCI Spring Cloud Storage module
19
+
|spring.cloud.oci.notification.enabled | `true` | Flag to enable the OCI Spring Cloud Notification module
20
+
|spring.cloud.oci.logging.enabled | `true` | Flag to enable the OCI Spring Cloud Logging module
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/core.adoc
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -31,27 +31,29 @@ Spring Cloud OCI allows you to authenticate with OCI with various following avai
31
31
32
32
==== Config File Based Authentication
33
33
34
-
By default config file based authentication is enabled. There are below optional configuration to choose custom config profile name and config file name.
34
+
By default config file based authentication is enabled, to set it explicitly set the property spring.cloud.oci.config.type to `FILE`. There are below optional configuration to choose custom config profile name and config file name.
35
35
36
36
----
37
37
spring.cloud.oci.config.profile = DEFAULT
38
38
spring.cloud.oci.config.file = <FILE_PATH>
39
39
----
40
40
41
+
For further details about the Authentication config file refer https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm[SDK and CLI Configuration File]
42
+
41
43
==== Simple Authentication
42
44
43
-
Set the config.type to `SIMPLE` and set related required properties as below. All the below properties are mandatory.
45
+
Set the property spring.cloud.oci.config.type to `SIMPLE` and add belowproperties:
Note: spring.cloud.oci.config.passPhrase is optional
56
+
Note: All the above properties are mandatory except spring.cloud.oci.config.passPhrase
55
57
56
58
==== Instance Principal Configuration
57
59
@@ -60,6 +62,7 @@ Set the config.type to `INSTANCE_PRINCIPAL` as below.
60
62
----
61
63
spring.cloud.oci.config.type = INSTANCE_PRINCIPAL
62
64
----
65
+
For further details refer https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm[OCI Instance Principal Authentication]
63
66
64
67
==== Resource Principal Configuration
65
68
@@ -69,6 +72,8 @@ Set the config.type to `RESOURCE_PRINCIPAL` as below.
69
72
spring.cloud.oci.config.type = RESOURCE_PRINCIPAL
70
73
----
71
74
75
+
For further details refer https://docs.public.oneportal.content.oci.oraclecloud.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#sdk_authentication_methods_resource_principal[OCI Resource Principal Authentication]
76
+
72
77
=== Region Configuration
73
78
74
79
OCI services are available in different regions. Based on the custom requirements, the user can host the application on different OCI regions. The below configuration allows to set specific region for the entire application.
@@ -77,6 +82,8 @@ OCI services are available in different regions. Based on the custom requirement
77
82
spring.cloud.oci.region.static = us-ashburn-1
78
83
----
79
84
85
+
Region value set in the above property takes precedence over the property `spring.cloud.oci.config.region` and `region` from the Authentication config file
86
+
80
87
=== Compartment Configuration
81
88
82
89
A compartment is a logical container, to organize and control access to the Oracle Cloud Infrastructure (OCI) Resources (Compute, Storage, Network, Load Balancer, etc) created within that compartment. Below configuration allows you to set default compartment for your application.
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/logging.adoc
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ dependencies {
29
29
=== Using Cloud Logging
30
30
31
31
The starter automatically configures and registers a `Logging` bean in the Spring application context.
32
-
The `Logging` bean (link[Javadoc]) can be used to ingest logs associated with a logId.
32
+
The `Logging` bean (link[Javadoc]) can be used to ingest logs associated with a logId set in the property `spring.cloud.oci.logging.logId` in the application configuration file
0 commit comments