Annotation Type ConjurPropertySource
-
@Documented @Target(TYPE) @Retention(RUNTIME) @Repeatable(ConjurPropertySources.class) @Import(Registrar.class) public @interface ConjurPropertySource
The @ConjurPropertySource annotation allows you to specify the root of a policy to look up. The Spring Boot Plugin routes the look up to Conjur through the Conjur Spring Boot SDK and a REST API that we expose. Using @ConjurPropertySource in conjunction with @Configuration classes is required. The names of secrets, passwords, and user IDs all remain as originally specified.Example usage
Given a vault's path
policy/my-applicationcontaining the configuration data pairdatabase.password=mysecretpassword, the following@Configurationclass usesConjurPropertySource).@Configuration @ConjurPropertySource("policy/my-application") public class AppConfig { @Value("${database.password:notFound}") private String password; @Bean public TestBean testBean() { TestBean testBean = new TestBean(); testBean.setPassword(password)); return testBean; } }
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanignoreResourceNotFoundStringnameIndicates the name of query vault.
-