File tree Expand file tree Collapse file tree 6 files changed +29
-10
lines changed
java/io/github/jopenlibs/vault/util Expand file tree Collapse file tree 6 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 11---
22name : Feature request
33about : Suggest an idea for this project
4- title : " [IMROVEMENT ] "
4+ title : " [IMPROVEMENT ] "
55labels : enhancement
66assignees : ' '
77
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Gradle:
4848
4949```
5050dependencies {
51- implementation 'io.github.jopenlibs:vault-java-driver:5.2 .0'
51+ implementation 'io.github.jopenlibs:vault-java-driver:5.3 .0'
5252}
5353```
5454
5858<dependency>
5959 <groupId>io.github.jopenlibs</groupId>
6060 <artifactId>vault-java-driver</artifactId>
61- <version>5.2 .0</version>
61+ <version>5.3 .0</version>
6262</dependency>
6363```
6464
@@ -310,7 +310,12 @@ and may require modifications in your code to migrate. Changes to the minor vers
310310number) should represent non-breaking changes. The third number represents any very minor bugfix
311311patches.
312312
313- * ** 5.2.0** : This release contains the following updates:
313+ * ** 5.3.0** : This release contains the following updates:
314+ * Created sys namespace [ PR #21 ] ( https://github.com/jopenlibs/vault-java-driver/pull/25 )
315+ * Add custom Vault Authentication Path when using k8s login method [ (PR #27 )] ( https://github.com/jopenlibs/vault-java-driver/pull/27 )
316+ * Parametrized integration tests [ (PR #21 )] ( https://github.com/jopenlibs/vault-java-driver/pull/21 )
317+ * Fix Leases section [ (PR #18 )] ( https://github.com/jopenlibs/vault-java-driver/pull/18 )
318+ * ** 5.2.0** : This release contains the following updates:
314319 * Move code packages and maven groupdId from ` com.bettercloud `
315320 to ` io.github.jopenlibs ` . [ (PR #2 )] ( https://github.com/jopenlibs/vault-java-driver/pull/2 )
316321 * Fix and refactoring data wrapping, add integration tests with the last Vault version (vault
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ apply plugin: 'checkstyle'
55
66group ' io.github.jopenlibs'
77archivesBaseName = ' vault-java-driver'
8- version ' 5.3.0-SNAPSHOT '
8+ version ' 5.3.0'
99
1010// This project is actually limited to Java 8 compatibility. See below.
1111sourceCompatibility = 9
Original file line number Diff line number Diff line change 55import io .github .jopenlibs .vault .VaultConfig ;
66import io .github .jopenlibs .vault .VaultException ;
77import java .nio .file .Path ;
8+ import java .util .Optional ;
89import org .slf4j .Logger ;
910import org .slf4j .LoggerFactory ;
1011import org .testcontainers .containers .BindMode ;
2021public class VaultAgentContainer extends GenericContainer <VaultAgentContainer > implements
2122 TestConstants , TestLifecycleAware {
2223
24+ public static final String VAULT_DEFAULT_IMAGE = "vault" ;
25+ public static final String VAULT_DEFAULT_TAG = "latest" ;
2326 private static final Logger LOGGER = LoggerFactory .getLogger (VaultAgentContainer .class );
2427
2528 /**
@@ -28,7 +31,8 @@ public class VaultAgentContainer extends GenericContainer<VaultAgentContainer> i
2831 public VaultAgentContainer (
2932 Path roleId ,
3033 Path secretId ) {
31- super ("vault:1.11.4" );
34+ super (VAULT_DEFAULT_IMAGE + ":" + Optional .ofNullable (
35+ System .getenv ("VAULT_VERSION" )).orElse (VAULT_DEFAULT_TAG ));
3236 this .withNetwork (CONTAINER_NETWORK )
3337 .withNetworkAliases ("agent" )
3438 .withClasspathResourceMapping ("/agent.hcl" , AGENT_CONFIG_FILE , BindMode .READ_ONLY )
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ certificate = /vault/config/ssl/root-cert.pem
88database = /vault/config/ssl/certindex
99private_key = /vault/config/ssl/root-privkey.pem
1010serial = /vault/config/ssl/serialfile
11- default_days = 365
12- default_md = sha1
11+ default_days = 3650
12+ default_md = sha256
1313policy = myca_policy
1414x509_extensions = myca_extensions
1515copy_extensions = copy
Original file line number Diff line number Diff line change @@ -17,10 +17,20 @@ rm -Rf *
1717cp ../libressl.conf .
1818
1919# Create a CA root certificate and key
20- openssl req -newkey rsa:2048 -days 3650 -x509 -nodes -out root-cert.pem -keyout root-privkey.pem -subj ' /C=US/ST=GA/L=Atlanta/O=BetterCloud/CN=localhost'
20+ openssl req -newkey rsa:4096 \
21+ -days 3650 \
22+ -x509 \
23+ -nodes \
24+ -out root-cert.pem \
25+ -keyout root-privkey.pem \
26+ -subj ' /C=US/ST=GA/L=Atlanta/O=BetterCloud/CN=localhost'
2127
2228# Create a private key, and a certificate-signing request
23- openssl req -newkey rsa:1024 -nodes -out vault-csr.pem -keyout vault-privkey.pem -subj ' /C=US/ST=GA/L=Atlanta/O=BetterCloud/CN=localhost'
29+ openssl req -newkey rsa:4096 \
30+ -nodes \
31+ -out vault-csr.pem \
32+ -keyout vault-privkey.pem \
33+ -subj ' /C=US/ST=GA/L=Atlanta/O=BetterCloud/CN=localhost'
2434
2535# Create an X509 certificate for the Vault server
2636echo 000a > serialfile
You can’t perform that action at this time.
0 commit comments