In MWLucas' Mastering Jails, Chapter 2 Jail Essentials, page 45... Lucas talks about final jail configuration. He mentions that after creating a bare jail, these things should be configured:
* jail root password
* jail has no users
* jail has no resolver, time zone, etc.
My question is: what is the standard practice for jails w/ respect to jail root account and jail user accounts? I'm not providing access to users, I'm installing services into my jails much like I'd setup a service stack in docker, e.g.:
Host
+ web server
+ db server
+ load balancer
Q: do you typically set a password for your jail root account?
Q: do you typically create jail user accounts and run your jail services under those accounts?
Q: do you set passwords for those jailed user/service accounts?
Q: do you typically standup ssh for those jailed user/service accounts?
For instance, I installed both caddy and postgres. Both of these packages created a an account to run their respective services under.
One of the reasons I ask about this is... when you jexec from the host, you don't need those passwords. So is assigning passwords to the jailed user accounts just for ceremony, or is it actually providing a security benefit?
Note: I typically have all my services living in an RFC1918 network and configure pf to port forward traffic to my jails.
----
A different but related question about jail services:
Q: what do you use as a template for creating your service scripts?
Q: if a service crashes, will freebsd restart it? does freebsd employ health checks on services?
Q: I guess the real question here is, how do you keep your services up?
Thanks in advance for any advice.
* jail root password
* jail has no users
* jail has no resolver, time zone, etc.
My question is: what is the standard practice for jails w/ respect to jail root account and jail user accounts? I'm not providing access to users, I'm installing services into my jails much like I'd setup a service stack in docker, e.g.:
Host
+ web server
+ db server
+ load balancer
Q: do you typically set a password for your jail root account?
Q: do you typically create jail user accounts and run your jail services under those accounts?
Q: do you set passwords for those jailed user/service accounts?
Q: do you typically standup ssh for those jailed user/service accounts?
For instance, I installed both caddy and postgres. Both of these packages created a an account to run their respective services under.
One of the reasons I ask about this is... when you jexec from the host, you don't need those passwords. So is assigning passwords to the jailed user accounts just for ceremony, or is it actually providing a security benefit?
Note: I typically have all my services living in an RFC1918 network and configure pf to port forward traffic to my jails.
----
A different but related question about jail services:
Q: what do you use as a template for creating your service scripts?
Q: if a service crashes, will freebsd restart it? does freebsd employ health checks on services?
Q: I guess the real question here is, how do you keep your services up?
Thanks in advance for any advice.