Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to revoke AWS user #3661

Closed
pag-r opened this issue Dec 7, 2017 · 4 comments
Closed

Unable to revoke AWS user #3661

pag-r opened this issue Dec 7, 2017 · 4 comments
Milestone

Comments

@pag-r
Copy link

pag-r commented Dec 7, 2017

According to revoke-lease user record should be revoked

Environment:

  • Vault Version:
    Vault v0.8.3 ('bdd70ff0326b1a93241d3e079b7f174cefe8e727')
  • Operating System/Architecture:
    Linux localhost 3.10.0-693.el7.x86_64 Initial Website Import #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
    CentOS Linux release 7.4.1708 (Core)

Vault Config File:

{"backend": {"zookeeper":
 {"address":"zookeeper:2181", "redirect_addr":"http://0.0.0.0:6379" }}, "listener": {"tcp": 
{"address":"0.0.0.0:8200","tls_disable":1}},
"disable_mlock":true,"plugin_directory":"/vault/vault_plugins"}

Expected Behavior:
PUT http://vault:8140/v1/sys/leases/revoke
with data

{"lease_id":"aws/creds/test/27074344-417f-a595-5dfd-eb6ed327ccdd"}

Above request should revoke AWS user.
Actual Behavior:
Error is returned:

Error code: 400 Bad Request
{
    "errors": [
        "failed to revoke entry: resp:(*logical.Response)(nil) err:SerializationError: 
failed to decode query XML error response\ncaused by: expected element type 
<ErrorResponse> but have <Response>"
    ]
}
@jefferai
Copy link
Member

Unfortunately this seems to be coming from the underlying AWS library. Any chance you could see if 0.9 fixes things for you?

@jefferai jefferai added this to the 0.9.1 milestone Dec 11, 2017
@pag-r
Copy link
Author

pag-r commented Dec 14, 2017

I'm preparing new Docker with all deps and version 0.9.0. Will back to you with the results.

@joelthompson
Copy link
Contributor

It looks like the actual error message returned from the IAM API is getting swallowed. Any chance you can look in your CloudTrail logs for details about the actual error?

@jefferai jefferai modified the milestones: 0.9.1, 0.9.2 Dec 18, 2017
@jefferai
Copy link
Member

@pag-r Please write back if you are still having issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants