edge-control: per-caller attribution for register/deregister #1094
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#1094
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Mirrored from johba/disinto#835
---## Problem
tools/edge-control/register.shdoes not know which admin invoked it. Wheninstall.sh:363seeds the forced-command entry, every key indisinto-register'sauthorized_keysinvokesregister.shwith the same (empty) identity.Consequences when more than one admin key exists:
registered_atbut noregistered_by.listoutput scoped by caller.Proposal
disinto-register/.ssh/authorized_keysgets a distinct forced-command tag:register.shparses--as <tag>and stores it in the registry asregistered_by.listoutput includesregistered_by.install.shtakes a--admin-tag <name>flag for the initial seeded key; defaults toadmin.Acceptance
registered_by.listoutput shows the tag.--asis allowed (defaults to"unknown") so existing deployments keep working.