Skip to content

Commit

Permalink
vault: Make sure our generated tokens are renewable
Browse files Browse the repository at this point in the history
This is necessary to support tools like `ecs-compose` that avoid
deploying unchanged containers, but which want to renew any existing
vault tokens.

Closes #12.
  • Loading branch information
emk committed Oct 6, 2016
1 parent 8b25c1c commit fa0a6f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/transform/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl GenerateToken for Vault {
let client = try!(vault::Client::new(&self.addr, &self.token));
let opts = vault::client::TokenOptions::default()
.display_name(display_name)
.renewable(false)
.renewable(true)
.ttl(ttl)
.policies(policies);
let auth = try!(client.create_token(&opts));
Expand Down

0 comments on commit fa0a6f7

Please sign in to comment.