When I logged in to see if my resources deployed autonomously in the last post w...

@teriradichel@infosec.exchange

When I logged in to see if my resources deployed autonomously in the last post were correct, I realized a few things were off plus I wanted to add something. The things that were off were my lack of specification mainly, nothing the agent did wrong.

First I failed to create separate secrets per host so the same secret got overriden a bunch of times.

I want my private bastion host security groups to use security group IDs not CIDRs.

I also am revisiting per user resources I wrote about in past blog posts. In this case, a user in my IAM account can switch roles to the account they work in and manage their own secrets and bastion hosts and prefix list.

The bastion host networking is centrally managed but the roles include a prefix list in the account where the user works so they can update their IP address.

The bastion hosts will be per user with a wire guard VPN which operates at layer 3/4 to tunnel all traffic unlike an SSL VPN. I was reading about enterprise limitations of WireGuard but if you have a user-specific host doesn’t that overcome the monitoring and termination problems?

Anyway the process involves setting the user up and deploying the secret which has information for the user to install the wire guard client and update the secret. Then the deployer sees secret has been added and installs the user specific configuration of WireGuard on the bastion host.

Does that work? Can the agents figure it out now that I have specified the resources to deploy and it in theory has written the user data script.

We’ll find out.