Import the artifactapi access binding stranded outside state
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

The apply that created authentik_policy_binding.app_access["akP-artifactapi-admin"]
read it back off the Authentik Postgres read replica before the row had
replicated, got a 404, and dropped it, leaving main red.

Import the existing binding c9f22628-d48c-477b-b9ac-a952c7d081ce into state.
This commit is contained in:
2026-09-07 23:49:48 +10:00
parent 4e164014d7
commit cd31cb6fa1
+7
View File
@@ -284,6 +284,13 @@ resource "authentik_policy_binding" "app_access" {
order = 0
}
# Created server-side, but its post-create read-back hit the Authentik Postgres
# read replica before the row replicated and 404'd, so it never reached state.
import {
to = authentik_policy_binding.app_access["akP-artifactapi-admin"]
id = "c9f22628-d48c-477b-b9ac-a952c7d081ce"
}
# Service accounts: non-human identities for automation. Kept out of the group
# hierarchy above (which models human app access) and given capabilities through
# RBAC roles instead.