News for hackers. Stuff that matters.
Re:Sovereign: Ansible playbooks to build and maintain your o... by ggregoire on Thursday January 30, 2020 @11:39AM (#22192703)
> Not trying to start a Docker vs. Ansible flame war

Don't worry, they serve very different purposes. You already probably know but Docker is for running applications in isolation, while Ansible is for provisioning and configuring hosts. For instance, you won't use Docker to harden sshd on your hosts but Ansible.

Re:Sovereign: Ansible playbooks to build and maintain your o... by bwbmr on Thursday January 30, 2020 @12:11PM (#22193057)
Are there any good resources (besides OP) for using Ansible in a home-server environment? Especially in a mixed docker + Ansible environment.
Re:Sovereign: Ansible playbooks to build and maintain your o... by jefurii on Thursday January 30, 2020 @12:50PM (#22193455)
After figuring out Ansible work I started using it to manage several personal VPS machines and the various boxes at home. I just used the Ansible docs, which are pretty good.
Re:Sovereign: Ansible playbooks to build and maintain your o... by VvR-Ox on Friday January 31, 2020 @12:51AM (#22199430)
Just start a simple project with Ansible and have a look at the repositories using Ansible to install Docker and deploy containers on your host afterwards.

You may want to put some effort (not that much) into managing your credentials with Ansible Vault[0] and you can try your playbooks e.g. on a Vagrant Machine[1] before applying them to a real host.

Any tutorial will do for the beginning but you should always notice what version of Ansible you are using (vs. the one used in the tutorial) as features change and also there have been some changes to the syntax to improve readability of your playbooks.

[0]: https://docs.ansible.com/ansible/latest/user_guide/vault.htm... [1]: https://www.vagrantup.com/docs/provisioning/ansible.html

Re:Sovereign: Ansible playbooks to build and maintain your o... by S04dKHzrKT on Thursday January 30, 2020 @09:47PM (#22198536)
https://github.com/davestephens/ansible-nas

Uses ansible + docker to setup and run a home server. Its feature-set is close to that of a typical FreeNAS setup in a home environment.

Re:Sovereign: Ansible playbooks to build and maintain your o... by ggregoire on Thursday January 30, 2020 @08:21PM (#22198065)
The official doc, StackOverflow and /r/ansible are good resources imo.
Re:Sovereign: Ansible playbooks to build and maintain your o... by chishaku on Thursday January 30, 2020 @01:50PM (#22194102)
They definitely have overlap. People use Ansible for much more than hardening sshd.
Re:Sovereign: Ansible playbooks to build and maintain your o... by eeZah7Ux on Thursday January 30, 2020 @05:13PM (#22196369)
Yet they are both security disasters.
Re:Sovereign: Ansible playbooks to build and maintain your o... by neop1x on Friday January 31, 2020 @06:29AM (#22200822)
How is docker container, running a process as unprivileged user with reduced capabilities security disaster? With Kubernetes you can even have network policy or service mesh with mTLS. Compare it to bunch of bare processes running on the same machine, lots of services listening on localhost, difficult updates due to different dependency version requirements by different software, requiring you do the manual, painful update only once a year. It may look bad at first, but container can be far more secure that common non-container environments. It's always matter of configuration and maintenance.
Re:Sovereign: Ansible playbooks to build and maintain your o... by eeZah7Ux on Friday January 31, 2020 @01:45PM (#22204280)
It has a huge attack surface, also a lot of its code runs with high privileges. There's plenty of documentation on this.
Re:Sovereign: Ansible playbooks to build and maintain your o... by grosswait on Thursday January 30, 2020 @06:13PM (#22197007)
How is Ansible a security disaster?
Re:Sovereign: Ansible playbooks to build and maintain your o... by eeZah7Ux on Friday January 31, 2020 @01:46PM (#22204299)
A system designed to SSH into production host with high privileges and make changes automatically instead of enforcing staging...
Re:Sovereign: Ansible playbooks to build and maintain your o... by apple4ever on Sunday February 02, 2020 @10:39AM (#22217359)
That’s not really a security disaster unless you consider all of SSH a security disaster.

If you are concerned about Ansible SSH’ing in (which means you are concerned about any person SSH’ing in), you just do the standard SSH hardening.

Re:Sovereign: Ansible playbooks to build and maintain your o... by eeZah7Ux on Sunday February 09, 2020 @08:55AM (#22282103)
...and yet SSHing on a production system to make configuration changes is prohibited in many large companies including some FAANGs.

Because you (or some intern hired a week ago) are 1 typo away from making a disaster.

For the record, security includes availability and this is an availability risk.