Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
e49e726
Extended Seal class with operation base abstract class
henryx Mar 1, 2023
98c9f42
Added new class intended to implement operations in sys endpoints
henryx Mar 2, 2023
77ae03e
Added new class intended to implement wrapping operations in sys endp…
henryx Mar 2, 2023
bf042ab
Moved wrapping methods in dedicated class declaring deprecated old me…
henryx Mar 5, 2023
d5454e1
Upgraded unit tests
henryx Mar 5, 2023
a5fe763
Upgraded integration tests
henryx Mar 5, 2023
3d05a0c
Added package-info and updated module-info for Sys package
henryx Mar 6, 2023
27efc3d
Moved seal methods in dedicated class and declaring deprecated old me…
henryx Mar 14, 2023
4c56f94
Added method that returns a Seal class instance
henryx Mar 14, 2023
239ff3e
Deprecated old method to instantiate Seal class
henryx Mar 14, 2023
e8d2883
Updated Seal tests
henryx Mar 14, 2023
0f2f497
Removed obsolete Seal class
henryx Mar 15, 2023
9f73e70
Moved mount package outside sys package and deprecated old methods
henryx Mar 15, 2023
5c34dc4
Updated mount tests
henryx Mar 15, 2023
dde8b71
Removed EOL Vault versions (except last one) from CI
henryx Mar 15, 2023
aa7f33f
Moved Leases class in sys package and deprecated old methods
henryx Mar 16, 2023
6726753
Updated Leases tests
henryx Mar 16, 2023
b2a033d
Added namespace setter method
henryx Mar 16, 2023
a4b5551
Used mocked server instead of external resource in Rest tests
henryx Mar 18, 2023
8236fe0
Fixed import order for checkstyle test
henryx Mar 20, 2023
05a5204
Moved static method in dedicated class
henryx Mar 20, 2023
562b061
Checked Vault version in tests
henryx Mar 20, 2023
d5416a4
Fixed comparator from less or equal to less
henryx Mar 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 6 additions & 24 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,7 @@ jobs:
java:
- 11
vault:
- 1.1.3
- 1.9.0
- 1.9.1
- 1.9.2
- 1.9.3
- 1.9.4
- 1.9.5
- 1.9.6
- 1.9.7
- 1.9.8
- 1.9.9
- 1.9.10
- 1.10.0
- 1.10.1
- 1.10.2
- 1.10.3
- 1.10.4
- 1.10.5
- 1.10.6
- 1.10.7
- 1.10.8
- 1.10.9
- 1.10.10
- 1.10.11
- 1.11.0
- 1.11.1
- 1.11.2
Expand All @@ -48,10 +26,13 @@ jobs:
- 1.11.5
- 1.11.6
- 1.11.7
- 1.11.8
- 1.12.0
- 1.12.1
- 1.12.2
- 1.12.3
- 1.12.4
- 1.13.0
- latest
os:
- ubuntu-latest
Expand All @@ -64,9 +45,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
Expand Down
33 changes: 20 additions & 13 deletions src/main/java/io/github/jopenlibs/vault/Vault.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import io.github.jopenlibs.vault.api.Auth;
import io.github.jopenlibs.vault.api.Debug;
import io.github.jopenlibs.vault.api.Leases;
import io.github.jopenlibs.vault.api.Logical;
import io.github.jopenlibs.vault.api.Seal;
import io.github.jopenlibs.vault.api.database.Database;
import io.github.jopenlibs.vault.api.mounts.Mounts;
import io.github.jopenlibs.vault.api.pki.Pki;
import io.github.jopenlibs.vault.api.sys.Leases;
import io.github.jopenlibs.vault.api.sys.Seal;
import io.github.jopenlibs.vault.api.sys.Sys;
import io.github.jopenlibs.vault.api.sys.mounts.Mounts;
import io.github.jopenlibs.vault.json.Json;
import io.github.jopenlibs.vault.json.JsonObject;
import io.github.jopenlibs.vault.json.JsonValue;
Expand Down Expand Up @@ -182,6 +183,16 @@ public Auth auth() {
return new Auth(vaultConfig);
}

/**
* Returns the implementing class for operations on Vault's <code>/v1/sys/*</code> REST
* endpoints
*
* @return The implementing class for Vault's auth operations.
*/
public Sys sys() {
return new Sys(vaultConfig);
}

/**
* Returns the implementing class for Vault's PKI secret backend (i.e. <code>/v1/pki/*</code>
* REST endpoints).
Expand Down Expand Up @@ -227,9 +238,8 @@ public Database database(final String mountPath) {
}

/**
* Returns the implementing class for Vault's lease operations (e.g. revoke, revoke-prefix).
*
* @return The implementing class for Vault's lease operations (e.g. revoke, revoke-prefix).
* @see Sys#leases()
* @deprecated This method is deprecated and in future it will be removed
*/
public Leases leases() {
return new Leases(vaultConfig);
Expand All @@ -245,19 +255,16 @@ public Debug debug() {
}

/**
* Returns the implementing class for Vault's sys mounts operations (i.e.
* <code>/v1/sys/mounts/*</code> REST endpoints).
*
* @return the implementing class for Vault's sys mounts operations
* @see Sys#mounts()
* @deprecated This method is deprecated and in future it will be removed
*/
public Mounts mounts() {
return new Mounts(vaultConfig);
}

/**
* Returns the implementing class for Vault's seal operations (e.g. seal, unseal, sealStatus).
*
* @return The implementing class for Vault's seal operations (e.g. seal, unseal, sealStatus).
* @see Sys#seal()
* @deprecated This method is deprecated and in future it will be removed
*/
public Seal seal() {
return new Seal(vaultConfig);
Expand Down
Loading