To upload the files there, I am planning to use a specific ssh key. It would be nice to be able to restrict what this ssh key can do, in authorized_keys, for example using rrsync (/usr/share/doc/rsync/scripts/rrsync.gz in the debian rsync package).
gotcha, pili. i talked about this with weasel quickly today and we might be able to accomodate you on the new static-master infrastructure he deployed a few months ago.
the checklist is:
create a role in LDAP, if missing
create a new static-source host instead of shoving everyone in the static-master (nightlies-source.tpo?)
give the role group access to the role user. create authorized_keys file writable by role user on the source.
add a static component, publishing to the web-fsn-* mirrors, with static-fsn-master as ... well, a master. :)
I'm not exactly sure how step 4 works here, but we'll see...
so i checked, and there's already a tbb-nightlies role in LDAP. also, weasel wants to create a separate host for this (step 2) which requires setting up a new virtual machine. i've updated the checklist to reflect that better.
unfortunately, for the next steps i'll have to delay this a bit more. we're in the process of rearchitecturing the virtual hosting infrastructure and we're in this critical stage where we want to empty a old host before creating new machines, to free up some budget.
We're running a user research testing program and we'll want end users and user research coordinators (and interested others!) to be able to easily download nightlies.
somewhat-HA sounds good, it doesn't need to be super-HA ;)
To upload, as tbb-nightlies, put things into tbb-nightlies-master:/srv/tbb-nightlies-master.torproject.org/htdocs and run static-update-component nightlies.tbb.torproject.org
boklm should have sudo access to that user.
There also is an /etc/ssh/userkeys/tbb-nightlies. You can put ssh authorized_keys lines in there. However, tpo policy is that only command-locked keys (i.e. with a command=".." thing) should exist. Also, please use restrict and ideally from= lock the keys also.
Trac: Resolution: N/Ato fixed Status: new to closed
To upload, as tbb-nightlies, put things into tbb-nightlies-master:/srv/tbb-nightlies-master.torproject.org/htdocs and run static-update-component nightlies.tbb.torproject.org
boklm should have sudo access to that user.
There also is an /etc/ssh/userkeys/tbb-nightlies. You can put ssh authorized_keys lines in there. However, tpo policy is that only command-locked keys (i.e. with a command=".." thing) should exist. Also, please use restrict and ideally from= lock the keys also.
Should I be using /usr/local/bin/staticsync-ssh-wrap, or something else to restrict rsync access?
I tried with command="/usr/local/bin/staticsync-ssh-wrap nightlies.tbb.torproject.org" in /etc/ssh/userkeys/tbb-nightlies.