Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#2124 from auslin-aot/feature/FWF-…
Browse files Browse the repository at this point in the history
…3370-BPM-Vault-support

FWF-3370: [Feature] Added conditional property to Vault Config
  • Loading branch information
arun-s-aot authored Jun 27, 2024
2 parents 59c0fd1 + 74d4dab commit 1cf83c6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

Mark items as `Added`, `Changed`, `Fixed`, `Modified`, `Removed`, `Untested Features`, `Upcoming Features`, `Known Issues`

## 6.1.0

`Added`

**forms-flow-bpm**
* Added support to fetch secrets from Vault.
* Added environment variables
`VAULT_ENABLED`, `VAULT_URL`, `VAULT_TOKEN`, `VAULT_PATH`, `VAULT_SECRET` to support Vault.

## 6.0.2 - 2024-06-05

`Added`
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,6 @@ CUSTOM_SUBMISSION_URL=http://{your-ip-address}:{port}
# Vault configuration
# VAULT_ENABLED=false
# VAULT_URL=http://{your-ip-address}:8200
# VAULT_TOKEN=<PASSWORD>
# VAULT_TOKEN=<token>
# VAULT_PATH=
# VAULT_SECRET=
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.vault.core.VaultTemplate;
import org.springframework.vault.support.VaultResponse;
Expand All @@ -12,6 +13,7 @@
import org.slf4j.LoggerFactory;

@Configuration
@ConditionalOnProperty(name = "spring.cloud.vault.enabled", havingValue = "true", matchIfMissing = false)
public class VaultConfig {

private static final Logger LOGGER = LoggerFactory.getLogger(VaultConfig.class);
Expand Down

0 comments on commit 1cf83c6

Please sign in to comment.