JetBrains / teamcity-hashicorp-vault-plugin

TeamCity plugin to support HashiCorp Vault
Apache License 2.0
28 stars 18 forks source link

Allow http status code 400 when revoking Vault token accessors #35

Closed semiria closed 4 years ago

semiria commented 4 years ago

Fixes #34

When revoking a token accessor that has already been revoked/is non existing, Vault sends back http status code 400 which throws an exception and prevents the revoke process to complete on server side. We allow the process to complete by allowing status code 400 in the case of the revoke action.

VladRassokhin commented 4 years ago

Appreciate your help, though I've found solution which also fixes Permission Denied problem which also could arise