What I'm doing on my personal server (fbsd) is simply do share the users
by ldap, on the different jails, that way, we can have a central acces
point to all their privileges.
I'm +1 on using fbsd jails.
Why do you want to share the user files on all the jails ? Is there an
use case to do so ?
Cheers,
Alex
What I do on my server, is to create users on the host, with the same
uid than the users on the jails.
That way, it's easy to do a symbolic link from a specific directory on
the server to a directory on the jail. This, also, needs to have only
one server, but is really quick and usable in term of performances. I'm
not sure about the security issues, and it seems to be a bit weird, but
it can be useful, maybe in another way.
> What I would prefer is to only "connect" the directories of the projects/web
> apps to the servers that will serve them.
Do you mean the "jails" ? If not, how many servers have "we", and what
is the averall organisation of them ?
> For example, if I create a Django
> project called "pandoraripper" in /home/alan (i.e. /home/alan/pandoraripper)
> I don't really want the server gaining access to /home/alan; I would instead
> prefer that /home/alan/pandoraripper be all that is revealed. What would you
> propose is the best solution? My thought was to simply mount
> /home/alan/pandoraripper as /projects/pandoraripper (or similar) in the
> Django server. Does that make sense?
BTW, I think something like /home/alan/django/pandoraripper could be
better, but I agree that the only thing that have to be revealed is the
project files.
Hmm, this make me think about something else: what are you planning to
use to serve WSGI for python/django applications ? There gunicorn, a
great tool for such purposes, which can be installed in front of nginx.
And what infrastructure are you planning to install (which
servers/(reverse)proxy/etc) ?
> P.S. I won't be able to setup a FreeBSD server until Monday as the weekend
> is packed. Once it's up I'll give an account to those who want one.
Okay fine, have a funny weekend !
Alex
What I do on my server, is to create users on the host, with the sameuid than the users on the jails.
That way, it's easy to do a symbolic link from a specific directory on
the server to a directory on the jail. This, also, needs to have only
one server, but is really quick and usable in term of performances. I'm
not sure about the security issues, and it seems to be a bit weird, but
it can be useful, maybe in another way.
Do you mean the "jails" ? If not, how many servers have "we", and whatis the averall organisation of them ?
Hmm, this make me think about something else: what are you planning touse to serve WSGI for python/django applications ? There gunicorn, a
great tool for such purposes, which can be installed in front of nginx.
Alan
--
This message was scanned by ESVA and is believed to be clean.
Click here to report this message as spam.
Cheers
Le 10/21/2010 08:44 PM, Duncan a écrit :
> Alan,
>
> Sorry to have been a bit quiet this week…
>
> I have talked to Gregg about DBs and we'd prefer to have the DBs stored
> outside the jail. Should we need to migrate to a second DB server somewhere
> down the line it would make the migration a lot simpler, since we could just
> change the DB address. I don't believe this can be done easily with the DB
> in the jail.
Why not ? I mean, it depends mainly on what the network configuration
is, no ? The jails can access the other jails over the network easily,
and I guess we can use NAT for more complex cases.
When you say "outside the jail", do you mean in another jail, or
directly on the host ? I'm strongly -1 on the second idea, cause it will
expose the whole system to the security fails DB could have.
Maybe I'm not understanding completely what you're saying, and you
simply want to put the DB aside from the jail, and in that case I'm in
favor of that (that's better to do things that way rather than having a
DB and the servers in the same jail).
BTW, maybe to increase our comprehension, we cane name the jails (eg.
the sites-jail, the db-jail, etc).
> Aside from that I can't think of any major issues with the jail
> config; what I've seen discussed so far looks good aside from the DB thing.
>
> Other than that, my understanding of jails and the discussion so far looks
> good.
>
> We do have some users that use multiple frameworks on their sites, and I
> would like to be able to support them if possible. I realize this is rather
> a lofty goal and may not be something we can accomplish.
Maybe can we do something like that.
I'm not sure to understand the whole system architecture (a scheme would
definitely help), but it's possible to do things using nullfs.
For instance, let's say we have one db-jail, and two frameworks jails (a
django-jail and a symfony-jail). We could create a file-jail, to store
the files that will be processed by the different frameworks jails.
To do so, we can mount, from the host, parts of the file-jail
filesystem, with read-only permission, on the framewok-jails. (it's way
better than the symbolic link I was talking last time).
I havnt do that yet, but it's used by the ez-jail system for instance,
and seems to work pretty well.
Cheers !
Alex
>> Click here to report this message as spam.<http://scanner.ambitiouslemon.com/cgi-bin/learn-msg.cgi?id=BB5CE27FFA.1B208>
>>
>