authorized_key
One public key in a user’s ~/.ssh/authorized_keys.
step "example" { authorized_key { key = "..." user = "..." }}Arguments
Section titled “Arguments”| Name | Type | Required | Description |
|---|---|---|---|
key |
string | Yes | Public key, in authorized_keys format. |
on_remove |
string | No | “delete” (default) removes the key, so a rotated key stops working; “forget” leaves it. |
state |
string | No | “present” (default) or “absent”. |
user |
string | Yes | The account the key logs in as. |
Read-only attributes
Section titled “Read-only attributes”Conn3x sets these; reference them as conn3x_authorized_key.<circuit>__<step>["<host>"].<name>.
| Name | Type | Description |
|---|---|---|
in_sync |
bool | Whether authorized_keys already matches. |
A step lowers to the conn3x_authorized_key resource, one instance per host, and connects with its circuit’s ssh block.