Get rid of the need for deployer.pub #385

Merged
Niols merged 1 commit from Niols/Fediversity:no-deployer-pub into main 2025-06-17 16:34:31 +02:00
Owner

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)

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: https://git.fediversity.eu/Fediversity/Fediversity/pulls/361#issuecomment-7857
Niols added 1 commit 2025-06-16 18:47:06 +02:00
Get rid of the need for deployer.pub
All checks were successful
/ check-pre-commit (pull_request) Successful in 12s
/ check-peertube (pull_request) Successful in 19s
/ check-panel (pull_request) Successful in 1m7s
/ check-deployment-basic (pull_request) Successful in 6s
/ check-deployment-cli (pull_request) Successful in 39m13s
5f02bcc123
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.
kiara approved these changes 2025-06-16 18:51:53 +02:00
Niols merged commit 4801433ae0 into main 2025-06-17 16:34:31 +02:00
Niols deleted branch no-deployer-pub 2025-06-17 16:34:31 +02:00
fricklerhandwerk reviewed 2025-06-17 17:14:47 +02:00
@ -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?

If we keep this line the deployer will be able to push, right? Why are we removing it?
Author
Owner

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.

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.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: fediversity/fediversity#385
No description provided.