Skip to main content
Version: Next

Configuration Properties

This page summarizes the common Spring Cloud Oracle OCI properties and the subset that supports configuration refresh at runtime.

Common OCI Properties

NameDefaultDescription
spring.cloud.oci.config.profileDEFAULTName of the profile in the OCI auth config file
spring.cloud.oci.config.fileNALocation of the OCI auth config file
spring.cloud.oci.config.typeFILEAuth type. Allowed values are FILE, SIMPLE, INSTANCE_PRINCIPAL, RESOURCE_PRINCIPAL, SESSION_TOKEN, and WORKLOAD_IDENTITY
spring.cloud.oci.config.federation-endpointNAOptional token endpoint for INSTANCE_PRINCIPAL, RESOURCE_PRINCIPAL, or WORKLOAD_IDENTITY
spring.cloud.oci.config.userIdNAUser OCID for SIMPLE auth
spring.cloud.oci.config.tenantIdNATenancy OCID for SIMPLE auth
spring.cloud.oci.config.fingerprintNAPublic key fingerprint for SIMPLE auth
spring.cloud.oci.config.privateKeyNAPrivate key file path for SIMPLE auth
spring.cloud.oci.config.passPhraseNAPassphrase for the private key, if encrypted
spring.cloud.oci.config.regionNAOCI region used for authentication
spring.cloud.oci.region.staticNAStatic region used for API calls, overriding auth-file region
spring.cloud.oci.compartment.staticNADefault OCI compartment OCID
spring.cloud.oci.storage.enabledtrueEnables the OCI Object Storage module
spring.cloud.oci.notification.enabledtrueEnables the OCI Notifications module
spring.cloud.oci.logging.enabledtrueEnables the OCI Logging module

Configuration Refresh

The following properties support runtime configuration refresh without restarting the application:

NameDefault
spring.cloud.oci.config.profileDEFAULT
spring.cloud.oci.config.fileNA
spring.cloud.oci.config.typeNA
spring.cloud.oci.config.userIdNA
spring.cloud.oci.config.tenantIdNA
spring.cloud.oci.config.fingerprintNA
spring.cloud.oci.config.privateKeyNA
spring.cloud.oci.config.passPhraseNA
spring.cloud.oci.config.regionNA
spring.cloud.oci.region.staticNA
spring.cloud.oci.compartment.staticNA
spring.cloud.oci.logging.logIdNA

Spring Boot Actuator can be used to trigger refresh explicitly.

Maven

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

Gradle

dependencies {
implementation("org.springframework.boot:spring-boot-starter-actuator")
}

Expose the refresh endpoint:

management.endpoints.web.exposure.include=refresh

After updating the externalized configuration, call POST /actuator/refresh.