File tree 1 file changed +7
-1
lines changed
src/main/java/com/bettercloud/vault/api
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,14 @@ public VaultResponse revoke(final String leaseId) throws VaultException {
54
54
int retryCount = 0 ;
55
55
while (true ) {
56
56
try {
57
+ /**
58
+ * 2019-03-21
59
+ * Changed the Lease revoke url due to invalid path. Vault deprecated the original
60
+ * path (/v1/sys/revoke) in favor of a new leases mount point (/v1/sys/leases/revoke)
61
+ * https://github.com/hashicorp/vault/blob/master/CHANGELOG.md#080-august-9th-2017
62
+ */
57
63
final RestResponse restResponse = new Rest ()//NOPMD
58
- .url (config .getAddress () + "/v1/sys/revoke/" + leaseId )
64
+ .url (config .getAddress () + "/v1/sys/leases/ revoke/" + leaseId )
59
65
.header ("X-Vault-Token" , config .getToken ())
60
66
.optionalHeader ("X-Vault-Namespace" , this .nameSpace )
61
67
.connectTimeoutSeconds (config .getOpenTimeout ())
You can’t perform that action at this time.
0 commit comments