Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag that access to Azure KeyVault is disabled #164

Open
souzagustavo opened this issue May 17, 2023 · 0 comments
Open

Flag that access to Azure KeyVault is disabled #164

souzagustavo opened this issue May 17, 2023 · 0 comments

Comments

@souzagustavo
Copy link

Hi,

I'm trying to use the enable flag to disable key vault integration momentarily, but it has no effect.

The Secrets are still listed

image

application.yaml

spring:   
  cloud:
    config:
      server:
        azure:
          keyvault:
            uri: ${KEYVAULT_URI}
            client-id: ${KEYVAULT_CLIENT_ID}
            client-key: ${KEYVAULT_CLIENT_SECRET}
            tenant-id:  ${AZ_TENANT_ID}
            enabled: false
        git:
          refreshRate: 30
          clone-on-start: true
          uri: ${GIT_URI}

build.gradle

plugins {
  id 'org.springframework.boot' version '2.3.5.RELEASE'
  id 'io.spring.dependency-management' version '1.0.10.RELEASE'
  id 'java'
}

group = 'com.superdigital'
version = '0.0.2-SNAPSHOT'
sourceCompatibility = '1.8'

repositories {
  mavenCentral()
}
ext {
  set('springCloudVersion', "Hoxton.SR8")
}

configurations {
    compile.exclude module: 'tomcat-embed-core'
    compile.exclude module: 'spring-boot-starter-tomcat'
    compile.exclude group: 'tomcat-embed-el'
}

dependencies {
	implementation 'org.springframework.cloud:spring-cloud-config-server'
	implementation 'org.springframework.boot:spring-boot-starter-undertow'
	implementation 'org.springframework.boot:spring-boot-starter-actuator'
        implementation 'io.github.srempfer:spring-cloud-config-azure-keyvault-starter:0.5.0'
}

dependencyManagement {
  imports {
    mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
  }
}

Am I using it correctly?

Also check that method getEnabled () has no references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant