jasypt-spring-boot-samples icon indicating copy to clipboard operation
jasypt-spring-boot-samples copied to clipboard

Decryption not working with Spring vault and spring boot 3.2.4

Open shash5259 opened this issue 10 months ago • 0 comments

spring:
  config:
    import: vault://
  cloud:
    vault:
      authentication: approle
      app-role:
        app-role-path: approle
        role-id: ${encrypted-role-id}
        secret-id: ${encrypted-secret-id}
      kv:
        backend: spring-boot-test
        enabled: true
        profile-separator: /
        default-context: saml
      enabled: true
      uri: https://test.test.com
      scheme: https

encrypted-role-id: ENC(encryptedtext)
encrypted-secret-id: ENC(encryptedtext)


<dependency>
	<groupId>com.github.ulisesbocchio</groupId>
	<artifactId>jasypt-spring-boot-starter</artifactId>
	<version>3.0.5</version>
</dependency>
<dependency>
	<groupId>com.github.ulisesbocchio</groupId>
	<artifactId>jasypt-spring-boot-starter</artifactId>
	<version>3.0.5</version>
</dependency>

The encrypted string is being passed in as the role id when trying to login, can you please help me out.

shash5259 avatar Apr 18 '24 14:04 shash5259