--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/231bdb76-cdf0-4b05-93e3-3463dc19b1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Francisco,I'm only putting my 2 cents here..Jeff's talk is very generic to represent wide variety of infrastructure setups. For the purposes of this discussion, an analogy can be drawn towards Nomad (https://www.nomadproject.io/). Scheduler maps to Nomad servers, and the scheduler agent maps to Nomad clients. Nomad server will create Vault tokens (response-wrapped), and injects the wrapped-tokens in to the jobs, which can very well be a container job, all the while retaining wrapped-token-accessor with itself so it can revoke the token when the job completes.Regards,Vishal
On Tue, Oct 4, 2016 at 6:53 AM, Francisco Javier Romero Mendiola <fjro...@paradigmadigital.com> wrote:
I am thinking about how to pass credentials to containers and I have watched next video of Jeff:I have no clear how it works. What scheduler and scheduler agent areRegards.Francisco
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/231bdb76-cdf0-4b05-93e3-3463dc19b1eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--vn
#!/bin/bash
# wrap_vault_token.sh
## TODO argument handling, error handling
MY_SECRET_PATH="$1"
MY_TTL="${2:-60s}"
# VAULT_TOKEN is already defined in the environment,
# it has permissions for MY_SECRECT_PATH
curl -s -H "X-Vault-Wrap-TTL:$MY_TTL" -H "X-Vault-Token:$VAULT_TOKEN" "https://vault.service.consul:8200/v1/secret/$MY_SECRET_PATH" | jq -r '.wrap_info.token'
docker build --build-arg BITBUCKET_TOKEN=$(./vault_wrap_token.sh bitbucket/my_repo) .
# jq, curl, and ca-certificates are already installed
ARG BITBUCKET_TOKEN
RUN cd /tmp \
&& mkdir -p /root/.ssh \
&& curl -X POST -H "X-Vault-Token:${BITBUCKET_TOKEN}" https://vault.service.consul:8200/v1/sys/wrapping/unwrap | jq -r .data.id_rsa > /root/.ssh/id_rsa \
&& chmod 600 /root/.ssh/id_rsa \
&& hg clone ssh://h...@bitbucket.org/my_username/my_repo \
&& rm /root/.ssh/id_rsa \
&& echo "the project is now cloned and there are no secrets hanging around"To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/5ad2af96-d873-49ef-be09-8eb7a51d16f7%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Vault" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vault-tool/-nl973TywnI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY5JvpuRLcKUrmyQ8tZryEnnRM0on8YanJJv44btuz40DA%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY5JvpuRLcKUrmyQ8tZryEnnRM0on8YanJJv44btuz40DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/vault/issues
IRC: #vault-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Vault" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vault-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/14b1f85f-6680-e4e3-6266-0dfbc7db8085%40neomantra.com.
To unsubscribe from this group and all its topics, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY4PfVkRkMQVNvQVbHKbNTWbk_EvzJV8%2Bvk45u2ztAyvfQ%40mail.gmail.com.
To unsubscribe from this group and all its topics, send an email to vault-tool+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vault-tool/CABHxtY4PfVkRkMQVNvQVbHKbNTWbk_EvzJV8%2Bvk45u2ztAyvfQ%40mail.gmail.com.