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

Automatically create Consul intentions #9993

Open
valenvb opened this issue Feb 9, 2021 · 4 comments
Open

Automatically create Consul intentions #9993

valenvb opened this issue Feb 9, 2021 · 4 comments

Comments

@valenvb
Copy link

valenvb commented Feb 9, 2021

When deploying a job with tasks that communicate via Consul Connect/sidecar proxies, it would be great if Nomad could automatically configure (and remove on completion) consul intentions to allow services defined in the same jobspec to communicate.

For instance if jobs are deployed by CI, they might have generated names from branches/tags (such as deploying review environments), which then each need to have intentions created manually (and later removed) in Consul.

@Oloremo
Copy link
Contributor

Oloremo commented Feb 9, 2021

I think the intentions supposed to be a second-factor autz in a way, but I'd be interested in something like this as well

@tgross tgross changed the title [feature request] Automatically create Consul intentions Automatically create Consul intentions Feb 10, 2021
@tgross tgross added this to Needs Roadmapping in Nomad - Community Issues Triage Feb 12, 2021
@tgross tgross removed this from Needs Roadmapping in Nomad - Community Issues Triage Mar 4, 2021
@microadam
Copy link
Contributor

microadam commented Mar 16, 2021

@valenvb I am after this functionality as well for the exact reason you described (review environments). What are you doing currently to solve this out of interest? (as doing it manually for review environments isn't really feasible)

@valenvb
Copy link
Author

valenvb commented Mar 17, 2021

@microadam Unfortunately our solution right now is to basically bypass this functionality entirely with a * -> * rule on our development cluster. Our production plan is likely going to involve our CI getting a very short lived token from Vault to put everything in motion. I haven’t really scoped that through fully though, and I think there may end up being a few hurdles to that (needing a policy in Consul that Vault can get a token against, etc). Hence the incredible usefulness of this feature request. For us anyway I think it will make intentions useful as a feature rather than something we have to work around.

@microadam
Copy link
Contributor

Thanks for the tips! I agree, would be very useful. Will probably go down the same route as allowing everything and isolating review environments to their own cluster

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

No branches or pull requests

4 participants