Get rid of the need for deployer.pub
#385
No reviewers
Labels
No labels
api service
blocked
bug
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: key result
type: objective
type: task
type: user story
user experience
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: fediversity/fediversity#385
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "Niols/Fediversity:no-deployer-pub"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The tests still work because we manually write the deployer's public key in
/root/.ssh/authorized_keys
on the target machines. In itself, however, the configuration that we push does not allow the deployer to push anything on the target machines.Context: Fediversity/Fediversity#361 (comment)
deployer.pub
@ -119,7 +119,6 @@ in
with subtest("Configure the deployer key"):
deployer.succeed("""mkdir -p ~/.ssh && ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa""")
deployer_key = deployer.succeed("cat ~/.ssh/id_rsa.pub").strip()
deployer.succeed(f"echo '{deployer_key}' > ${config.pathFromRoot}/deployer.pub")
If we keep this line the deployer will be able to push, right? Why are we removing it?
This line only writes the public key of the deployer in another place on the deployer machine. This is not what allows the deployer to push on the targets (that would be the next three lines). This
deployer.pub
file used to be part of the configuration pushed onto target machines, but we aren't using that anymore.