Skip to content

Commit fce4a0b

Browse files
Merge pull request #40 from anders-swanson/oke-workload-identity
OKE Workload Identity Authentication
2 parents 8e86783 + 555f724 commit fce4a0b

File tree

40 files changed

+71
-35
lines changed

40 files changed

+71
-35
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
**/*.rpm
66
**/*.jar
77
**/*.bin
8+
pom.xml.versionsBackup
89

910
### STS ###
1011
.apt_generated

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ For a deep dive into the project, refer to the Spring Cloud OCI documentation:
1515
| Version | Reference Docs | API Docs |
1616
|------------------------|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
1717
| Spring Cloud OCI 1.0.0 | [Reference Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/reference/html/index.html) | [API Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/javadocs/index.html) |
18-
| Spring Cloud OCI 1.0.1 | [Reference Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/reference/html/index.html) | [API Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/javadocs/index.html)
18+
| Spring Cloud OCI 1.0.1 | [Reference Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/reference/html/index.html) | [API Docs](https://oracle.github.io/spring-cloud-oci/1.0.0/javadocs/index.html) |
19+
1920

2021
## Compatibility with Spring Project Versions
2122

@@ -25,6 +26,7 @@ This project has dependency and transitive dependencies on Spring Projects. The
2526
|------------------|--------------|--------------|--------------|
2627
| 1.0.0 | 2022.0.x | 3.1.x, 3.0.x | 3.24.0 |
2728
| 1.0.1 | 2023.0.x | 3.2.x | 3.41.1 |
29+
| 1.1.0 | 2023.0.x | 3.2.x | 3.41.1 |
2830

2931
## Try out samples
3032

docs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1818
<name>spring-cloud-oci-docs</name>
1919
<groupId>com.oracle.cloud.spring</groupId>
2020
<artifactId>spring-cloud-oci-docs</artifactId>
21-
<version>1.0.1-SNAPSHOT</version>
21+
<version>1.1.0-SNAPSHOT</version>
2222
<packaging>pom</packaging>
2323
<licenses>
2424
<license>

docs/src/main/asciidoc/_configprops.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
|spring.cloud.oci.config.profile | `DEFAULT` | Name of the profile in OCI Auth config file
88
|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, RESOURCE_PRINCIPAL and SESSION_TOKEN
9+
|spring.cloud.oci.config.type | FILE | Config/Auth type to be used. Allowed values are FILE, SIMPLE, INSTANCE_PRINCIPAL, RESOURCE_PRINCIPAL, SESSION_TOKEN, and WORKLOAD_IDENTITY
1010
|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`
1111
|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`
1212
|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`

docs/src/main/asciidoc/core.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,16 @@ Set the config.type to `SESSION_TOKEN` as shown here.
8282
spring.cloud.oci.config.type = SESSION_TOKEN
8383
----
8484

85+
==== Workload Identity Configuration
86+
87+
Set the config.type to `WORKLOAD_IDENTITY` as shown here.
88+
89+
----
90+
spring.cloud.oci.config.type = WORKLOAD_IDENTITY
91+
----
92+
93+
For further details, refer to https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm[OKE Workload Identity Authentication]
94+
8595
For further details, refer to https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdk_authentication_methods.htm#ariaid-title12
8696

8797
=== Region Configuration

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1616
</parent>
1717
<groupId>com.oracle.cloud.spring</groupId>
1818
<artifactId>spring-cloud-oci</artifactId>
19-
<version>1.0.1-SNAPSHOT</version>
19+
<version>1.1.0-SNAPSHOT</version>
2020
<packaging>pom</packaging>
2121

2222
<name>Spring Cloud OCI</name>

spring-cloud-oci-autoconfigure/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1111
<parent>
1212
<artifactId>spring-cloud-oci</artifactId>
1313
<groupId>com.oracle.cloud.spring</groupId>
14-
<version>1.0.1-SNAPSHOT</version>
14+
<version>1.1.0-SNAPSHOT</version>
1515
</parent>
1616

1717
<artifactId>spring-cloud-oci-autoconfigure</artifactId>

spring-cloud-oci-autoconfigure/src/main/java/com/oracle/cloud/spring/autoconfigure/core/CredentialsProperties.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public enum ConfigType {
2222
FILE,
2323
INSTANCE_PRINCIPAL,
2424
RESOURCE_PRINCIPAL,
25+
WORKLOAD_IDENTITY,
2526
SIMPLE,
2627
SESSION_TOKEN
2728
}

spring-cloud-oci-autoconfigure/src/main/java/com/oracle/cloud/spring/autoconfigure/core/CredentialsProvider.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import com.oracle.bmc.auth.SessionTokenAuthenticationDetailsProvider;
1515
import com.oracle.bmc.auth.SimpleAuthenticationDetailsProvider;
1616
import com.oracle.bmc.auth.SimplePrivateKeySupplier;
17+
import com.oracle.bmc.auth.okeworkloadidentity.OkeWorkloadIdentityAuthenticationDetailsProvider;
1718

1819
import java.io.IOException;
1920

@@ -41,6 +42,9 @@ private static BasicAuthenticationDetailsProvider createCredentialsProvider(Cred
4142
BasicAuthenticationDetailsProvider authenticationDetailsProvider;
4243

4344
switch (properties.getType()) {
45+
case WORKLOAD_IDENTITY:
46+
authenticationDetailsProvider = OkeWorkloadIdentityAuthenticationDetailsProvider.builder().build();
47+
break;
4448
case RESOURCE_PRINCIPAL:
4549
authenticationDetailsProvider = ResourcePrincipalAuthenticationDetailsProvider.builder().build();
4650
break;

spring-cloud-oci-autoconfigure/src/test/java/com/oracle/cloud/spring/autoconfigure/core/CredentialsProviderAutoConfigurationTests.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
import com.oracle.bmc.Region;
99
import com.oracle.bmc.auth.*;
10+
import com.oracle.bmc.auth.okeworkloadidentity.OkeWorkloadIdentityAuthenticationDetailsProvider;
1011
import org.junit.jupiter.api.Test;
1112
import org.mockito.MockedConstruction;
1213
import org.mockito.MockedStatic;
@@ -71,6 +72,19 @@ void testConfigurationValueConfiguredAreAsExpected() {
7172
});
7273
}
7374

75+
@Test
76+
void testWorkloadIdentityProvider() throws Exception {
77+
CredentialsProperties properties = new CredentialsProperties();
78+
properties.setType(CredentialsProperties.ConfigType.WORKLOAD_IDENTITY);
79+
CredentialsProviderAutoConfiguration configuration = new CredentialsProviderAutoConfiguration(properties);
80+
try (MockedStatic mocked = mockStatic(OkeWorkloadIdentityAuthenticationDetailsProvider.class)) {
81+
OkeWorkloadIdentityAuthenticationDetailsProvider.OkeWorkloadIdentityAuthenticationDetailsProviderBuilder builder =
82+
mock(OkeWorkloadIdentityAuthenticationDetailsProvider.OkeWorkloadIdentityAuthenticationDetailsProviderBuilder.class);
83+
when(OkeWorkloadIdentityAuthenticationDetailsProvider.builder()).thenReturn(builder);
84+
BasicAuthenticationDetailsProvider provider = configuration.credentialsProvider().getAuthenticationDetailsProvider();
85+
}
86+
}
87+
7488
@Test
7589
void testResourcePrincipalProvider() throws Exception {
7690
CredentialsProperties properties = new CredentialsProperties();

spring-cloud-oci-core/pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515

1616
<artifactId>spring-cloud-oci-core</artifactId>
@@ -67,6 +67,10 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
6767
<groupId>com.oracle.oci.sdk</groupId>
6868
<artifactId>oci-java-sdk-identity</artifactId>
6969
</dependency>
70+
<dependency>
71+
<groupId>com.oracle.oci.sdk</groupId>
72+
<artifactId>oci-java-sdk-addons-oke-workload-identity</artifactId>
73+
</dependency>
7074
<dependency>
7175
<groupId>com.oracle.oci.sdk</groupId>
7276
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>

spring-cloud-oci-dependencies/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.oracle.cloud.spring</groupId>
66
<artifactId>spring-cloud-oci-dependencies</artifactId>
7-
<version>1.0.1-SNAPSHOT</version>
7+
<version>1.1.0-SNAPSHOT</version>
88
<packaging>pom</packaging>
99

1010
<name>Spring Cloud OCI Dependencies</name>

spring-cloud-oci-function/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515

1616
<artifactId>spring-cloud-oci-function</artifactId>

spring-cloud-oci-logging/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515

1616
<artifactId>spring-cloud-oci-logging</artifactId>

spring-cloud-oci-notification/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515

1616
<artifactId>spring-cloud-oci-notification</artifactId>

spring-cloud-oci-queue/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515

1616
<artifactId>spring-cloud-oci-queue</artifactId>

spring-cloud-oci-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<artifactId>spring-cloud-oci</artifactId>
1212
<groupId>com.oracle.cloud.spring</groupId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515
<modelVersion>4.0.0</modelVersion>
1616
<packaging>pom</packaging>

spring-cloud-oci-samples/spring-cloud-oci-common-samples-utils/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<groupId>com.oracle.cloud.spring</groupId>
1212
<artifactId>spring-cloud-oci-samples</artifactId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515
<groupId>com.oracle.cloud.spring.sample.common</groupId>
1616
<artifactId>spring-cloud-oci-common-samples-utils</artifactId>

spring-cloud-oci-samples/spring-cloud-oci-function-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This application has the following classes:
1111
Configuration items that are needed to run the Application can be configured in `application.properties`.
1212

1313
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
14-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SIMPLE, SESSION_TOKEN and FILE. If nothing is specified, FILE type is used by default.
14+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SIMPLE, SESSION_TOKEN, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
1515
* `spring.cloud.oci.config.file` - The file path set to this property will be used as the configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
1616
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI config file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
1717

spring-cloud-oci-samples/spring-cloud-oci-function-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
99
<parent>
1010
<groupId>com.oracle.cloud.spring</groupId>
1111
<artifactId>spring-cloud-oci-samples</artifactId>
12-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.1.0-SNAPSHOT</version>
1313
</parent>
1414
<modelVersion>4.0.0</modelVersion>
1515
<groupId>com.oracle.cloud.spring.sample.function</groupId>

spring-cloud-oci-samples/spring-cloud-oci-logging-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This application has the following classes:
1111
Configuration items that are needed to run the Application can be configured in `application.properties`. These include the following:
1212

1313
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
14-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE and FILE. If nothing is specified, FILE type is used by default.
14+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
1515
* `spring.cloud.oci.config.file` - The file path set to this property will be used as a configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
1616
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI configuration file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
1717
* `spring.cloud.oci.logging.logId` - OCID of the OCI Log where the logs need to be ingested.

spring-cloud-oci-samples/spring-cloud-oci-logging-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
99
<parent>
1010
<groupId>com.oracle.cloud.spring</groupId>
1111
<artifactId>spring-cloud-oci-samples</artifactId>
12-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.1.0-SNAPSHOT</version>
1313
</parent>
1414
<modelVersion>4.0.0</modelVersion>
1515
<groupId>com.oracle.cloud.spring.sample.logging</groupId>

spring-cloud-oci-samples/spring-cloud-oci-notification-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This application has the following classes:
1717
Configuration items that are needed to run the Application can be configured in `application.properties`.
1818

1919
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
20-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE and FILE. If nothing is specified, FILE type is used by default.
20+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
2121
* `spring.cloud.oci.config.file` - The file path set to this property will be used as the configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
2222
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI config file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
2323

spring-cloud-oci-samples/spring-cloud-oci-notification-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
99
<parent>
1010
<groupId>com.oracle.cloud.spring</groupId>
1111
<artifactId>spring-cloud-oci-samples</artifactId>
12-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.1.0-SNAPSHOT</version>
1313
</parent>
1414
<modelVersion>4.0.0</modelVersion>
1515
<groupId>com.oracle.cloud.spring.sample.notification</groupId>

spring-cloud-oci-samples/spring-cloud-oci-queue-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This application has the following classes:
2020
Configuration items that are needed to run the Application can be configured in `application.properties`.
2121

2222
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
23-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE and FILE. If nothing is specified, FILE type is used by default.
23+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCEPRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
2424
* `spring.cloud.oci.config.file` - The file path set to this property will be used as the configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
2525
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI config file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
2626

spring-cloud-oci-samples/spring-cloud-oci-queue-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
99
<parent>
1010
<groupId>com.oracle.cloud.spring</groupId>
1111
<artifactId>spring-cloud-oci-samples</artifactId>
12-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.1.0-SNAPSHOT</version>
1313
</parent>
1414
<modelVersion>4.0.0</modelVersion>
1515
<groupId>com.oracle.cloud.spring.sample.queue</groupId>

spring-cloud-oci-samples/spring-cloud-oci-storage-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ OCI provides customers with high-performance computing and low-cost cloud storag
1414
Configuration items that are needed to run the Application can be configured in `application.properties`.
1515

1616
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
17-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE and FILE. If nothing is specified, FILE type is used by default.
17+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SESSION_TOKEN, SIMPLE, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
1818
* `spring.cloud.oci.config.file` - The file path set to this property will be used as the configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
1919
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI config file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
2020

spring-cloud-oci-samples/spring-cloud-oci-storage-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
1010
<parent>
1111
<groupId>com.oracle.cloud.spring</groupId>
1212
<artifactId>spring-cloud-oci-samples</artifactId>
13-
<version>1.0.1-SNAPSHOT</version>
13+
<version>1.1.0-SNAPSHOT</version>
1414
</parent>
1515
<groupId>com.oracle.cloud.spring.sample.storage</groupId>
1616
<artifactId>spring-cloud-oci-storage-sample</artifactId>

spring-cloud-oci-samples/spring-cloud-oci-streaming-sample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This application has the following classes:
1111
Configuration items that are needed to run the Application can be configured in `application.properties`. These include the following:
1212

1313
* `spring.cloud.oci.region.static` - OCI Region name(Ex: us-phoenix-1) where the OCI resources need to be created.
14-
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SIMPLE and FILE. If nothing is specified, FILE type is used by default.
14+
* `spring.cloud.oci.config.type` - Authentication type to be used for OCI. It could be one of the following: RESOURCE_PRINCIPAL, INSTANCE_PRINCIPAL, SIMPLE, FILE, and WORKLOAD_IDENTITY. If nothing is specified, FILE type is used by default.
1515
* `spring.cloud.oci.config.file` - The file path set to this property will be used as a configuration file for FILE type authentication which uses the OCI configuration file. If nothing is specified, the OCI configuration file from the user's home directory will be used.
1616
* `spring.cloud.oci.config.profile` - Profile to be used in the OCI configuration file for Authentication. If a profile is not specified, a DEFAULT profile will be used.
1717

spring-cloud-oci-samples/spring-cloud-oci-streaming-sample/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Licensed under the Universal Permissive License v 1.0 as shown at https://oss.or
99
<parent>
1010
<groupId>com.oracle.cloud.spring</groupId>
1111
<artifactId>spring-cloud-oci-samples</artifactId>
12-
<version>1.0.1-SNAPSHOT</version>
12+
<version>1.1.0-SNAPSHOT</version>
1313
</parent>
1414
<modelVersion>4.0.0</modelVersion>
1515
<groupId>com.oracle.cloud.spring.sample.streaming</groupId>

0 commit comments

Comments
 (0)