Adaptation to Vault 0.8 endpoints for renew and revoke leases (#11)
Breaking backwards compatibility with Vault 0.7 and below.
This commit is contained in:
parent
b9ad2d1551
commit
e002fc749a
@ -1,6 +1,7 @@
|
|||||||
## 0.7.0 [work in progress]
|
## 0.7.0 [work in progress]
|
||||||
* [feature] Retrieval of health status via `getHealth()` (#15)
|
* [feature] Retrieval of health status via `getHealth()` (#15)
|
||||||
* [improvement] `seal()`, `unseal()` are now `void` and throw Exception on error (#12)
|
* [improvement] `seal()`, `unseal()` are now `void` and throw Exception on error (#12)
|
||||||
|
* [compatibility] Adaptation to Vault 0.8 endpoints for `renew` and `revoke`, **breaking** 0.7 compatibility (#11)
|
||||||
* [deletion] Removed deprecated `listAppRoleSecretss()` (use `listAppRoleSecrets()`) (#14)
|
* [deletion] Removed deprecated `listAppRoleSecretss()` (use `listAppRoleSecrets()`) (#14)
|
||||||
* [test] Tested against Vault 0.8.3
|
* [test] Tested against Vault 0.8.3
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ public class HTTPVaultConnector implements VaultConnector {
|
|||||||
private static final String PATH_SEAL_STATUS = "sys/seal-status";
|
private static final String PATH_SEAL_STATUS = "sys/seal-status";
|
||||||
private static final String PATH_SEAL = "sys/seal";
|
private static final String PATH_SEAL = "sys/seal";
|
||||||
private static final String PATH_UNSEAL = "sys/unseal";
|
private static final String PATH_UNSEAL = "sys/unseal";
|
||||||
private static final String PATH_RENEW = "sys/renew";
|
private static final String PATH_RENEW = "sys/leases/renew";
|
||||||
private static final String PATH_AUTH = "sys/auth";
|
private static final String PATH_AUTH = "sys/auth";
|
||||||
private static final String PATH_TOKEN = "auth/token";
|
private static final String PATH_TOKEN = "auth/token";
|
||||||
private static final String PATH_LOOKUP = "/lookup";
|
private static final String PATH_LOOKUP = "/lookup";
|
||||||
@ -59,7 +59,7 @@ public class HTTPVaultConnector implements VaultConnector {
|
|||||||
private static final String PATH_AUTH_APPID = "auth/app-id/";
|
private static final String PATH_AUTH_APPID = "auth/app-id/";
|
||||||
private static final String PATH_AUTH_APPROLE = "auth/approle/";
|
private static final String PATH_AUTH_APPROLE = "auth/approle/";
|
||||||
private static final String PATH_AUTH_APPROLE_ROLE = "auth/approle/role/%s%s";
|
private static final String PATH_AUTH_APPROLE_ROLE = "auth/approle/role/%s%s";
|
||||||
private static final String PATH_REVOKE = "sys/revoke/";
|
private static final String PATH_REVOKE = "sys/leases/revoke/";
|
||||||
private static final String PATH_HEALTH = "sys/health";
|
private static final String PATH_HEALTH = "sys/health";
|
||||||
|
|
||||||
private static final String HEADER_VAULT_TOKEN = "X-Vault-Token";
|
private static final String HEADER_VAULT_TOKEN = "X-Vault-Token";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user