anubis: a database replica gets no signing key, so Anubis does not start on a pair #56

Closed
opened 2026-10-16 05:42:53 -03:00 by navigator · 2 comments
Owner

Found by the LNMP and LNPP pair tests on hw12-br1, 2026-10-16 (handbook docs/evidence/2026-10-16-lnmp-lnpp-images.md).

On a cloud simple pair, keel-overlay-anubis-key.service makes no key on the database replica:

anubis: this node is a database replica: the key is shared and comes from the primary (decision 0041); none is made on this node

Nothing copies the key to the replica. Thus anubis@keel does not start there, and keel spec apply --system-only fails the anubis overlay: "A dependency job for anubis@keel.service failed".

The tests used this workaround: copy /etc/anubis/keel.key of the primary to /etc/keel/secrets/anubis_signing_key (mode 0600) on the replica, declare secrets.anubis_signing_key: {file: ...}, restart the key unit, then apply again.

What is needed, one of:

  1. Copy the key from the primary over the members' channel, as keel asks the database certificate of the holder (a keel change).
  2. At the least, write the manual step in the pair procedure and say it in the unit's message.
Found by the LNMP and LNPP pair tests on hw12-br1, 2026-10-16 (handbook docs/evidence/2026-10-16-lnmp-lnpp-images.md). On a cloud simple pair, `keel-overlay-anubis-key.service` makes no key on the database replica: ``` anubis: this node is a database replica: the key is shared and comes from the primary (decision 0041); none is made on this node ``` Nothing copies the key to the replica. Thus `anubis@keel` does not start there, and `keel spec apply --system-only` fails the anubis overlay: "A dependency job for anubis@keel.service failed". The tests used this workaround: copy `/etc/anubis/keel.key` of the primary to `/etc/keel/secrets/anubis_signing_key` (mode 0600) on the replica, declare `secrets.anubis_signing_key: {file: ...}`, restart the key unit, then apply again. What is needed, one of: 1. Copy the key from the primary over the members' channel, as keel asks the database certificate of the holder (a keel change). 2. At the least, write the manual step in the pair procedure and say it in the unit's message.
Member

The bridge mirrored this item to GitHub: https://github.com/Keel-Linux/common/issues/53
Comments, labels and the open or closed state sync both ways.

The bridge mirrored this item to GitHub: https://github.com/Keel-Linux/common/issues/53 Comments, labels and the open or closed state sync both ways. <!-- keel-bridge:v1 o=x r=common id=53 -->
Author
Owner

Fixed in keel by Keel-Linux/keel#187 (merged, keel 0.23.34): a paired replica asks the other member of the pair for the key over the members' channel and writes it before Anubis starts. The cross-site rehearsals of 2026-10-16 showed the key on the replica with no hand copy. The release test of LNMP and LNPP 19.0-3 checks it again.

Fixed in keel by Keel-Linux/keel#187 (merged, keel 0.23.34): a paired replica asks the other member of the pair for the key over the members' channel and writes it before Anubis starts. The cross-site rehearsals of 2026-10-16 showed the key on the replica with no hand copy. The release test of LNMP and LNPP 19.0-3 checks it again.
Sign in to join this conversation.
No milestone
No project
No assignees
2 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
Keel-Linux/common#56
No description provided.