| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-8a591dc |
| 4 | status: closed |
| 5 | title: "Machine access now expires through registry compilation" |
| 6 | created: 2026-07-31 |
| 7 | source: provisioning a disposable agent VM against the pilot host, 2026-07-31 |
| 8 | --- |
| 9 | |
| 10 | # Machine access now expires through registry compilation |
| 11 | |
| 12 | Machine access needs a declared lifetime so a disposable machine does not leave an indefinite grant |
| 13 | behind. The registry and compiler provide that mechanism, which is the resolution recorded by this |
| 14 | closed bug. |
| 15 | |
| 16 | [[dcr-b87f6e8]](../decisions/dcr-b87f6e8-identity-is-a-governed-registry.md) requires expiry for |
| 17 | machine and service entries. The [identity compiler](../../identity/) reads the integrated registry |
| 18 | and omits expired entries from generated access artifacts. |
| 19 | |
| 20 | Provisioning access is a registry change. It does not require rebuilding the primary host for each |
| 21 | machine. |
| 22 | |
| 23 | ## Expiry and recovery behavior |
| 24 | |
| 25 | Removal takes effect on the first successful convergence after expiry. It is not an instantaneous |
| 26 | credential expiry enforced independently by SSH. |
| 27 | |
| 28 | A failed compilation leaves the last valid artifacts in place. This preserves a recovery path but |
| 29 | can delay access removal. Keys declared directly by the host remain available outside the generated |
| 30 | registry artifacts during this deployment stage. |
| 31 | |
| 32 | The registry therefore resolves the lack of any declared machine lifetime. Continued convergence and |
| 33 | the handling of fallback keys remain part of operating that mechanism. |
| 34 | |
| 35 | ## Related work |
| 36 | |
| 37 | Qinling's `dcr-34b3f6d` separates keys by capability, including authentication, decryption, and |
| 38 | human signing. That separation complements expiry by limiting what a credential can do. |
| 39 | |
| 40 | Short-lived certificates remain a possible next step. Their issuer and request-authentication design |
| 41 | are still open in [[dcr-b87f6e8]](../decisions/dcr-b87f6e8-identity-is-a-governed-registry.md). |