Adding or removing a person¶
You want to give someone access, or take it away, and converge the change. Adding or removing a key on the Pis reboots the whole fleet (why).
All the lists are in
inventory/group_vars/all/ssh_keys.yml.
To |
Edit |
Effect after the converge |
|---|---|---|
give someone an operator account (tweed login with sudo, |
add |
tweed account and sudoers file ( |
let someone use the jump account only |
add |
keys on tweed’s |
remove an operator |
take them out of |
their keys leave |
remove someone from the jump account |
take the id out of |
the keys are deleted from |
revoke one key that has left someone’s GitHub account |
add it to |
deleted from the jump and operator accounts. |
operators and jump only ever add keys, which is why the revoked lists
exist. Keep an entry in a revoked list until every host has converged without
the key. Imported lines carry a # ssh-import-id <id> comment (the format the
old ssh-import-id runs used), and that comment is how ssh_imports_revoked
finds an id’s lines to delete. fixpi uses only gh: ids, so give operators
gh: ids.
Converging the change¶
Converge from any controller that reaches gw.welland.fpgas.online over IPv6: it is the inventory’s
ansible_host (tweed). tweed’s host_vars hold vaulted values, so give Ansible
the vault password as the README’s Deploy section does
(ANSIBLE_VAULT_PASSWORD_FILE, or --vault-password-file). Always the
whole playbook, never a --tags subset (issue #157):
export ANSIBLE_VAULT_PASSWORD_FILE=~/.config/fpgas-online/vault-pass
uv run ansible-playbook ansible/site.yml --limit fpgas.online
Rotating the automation key¶
The automation key itself is never in these lists. Rotating it means changing
the vaulted private key, ~/.ssh/fpgas.online-ansible{,.pub} on every
controller, and the preseed’s copy, and then converging. automation_user
writes the new key exclusively on tweed and fixpi writes it into the Pi root
(fleet reboot).
After the converge¶
A change to the Pis’ keys reboots each board in its stagger slot (how long). Then check the change with Verifying, and log in as the person would with Logging in.