Enterprise governance and recovery
Design permissions by actions
Separate organization, project and workspace permissions. TFE combines grants across scopes and teams, so a narrow workspace grant cannot cancel a broader organization grant. Site administration is a distinct privilege with instance-wide implications. Use task-focused permissions when supported, rather than assuming a predefined role matches a job title.
Fictional governance matrix (actions, not built-in role names)Developers: read runs, request plans in developmentRelease operators: reviewed production applySecurity reviewers: inspect audit evidence, no routine applyPlatform operators: administer TFE, separate emergency accessAll: no standing broad state-export access unless justifiedThe matrix is a proposed policy, not actual TFE role names. A release operator needs a documented approval path and the necessary apply permission; a reviewer who can read runs may still encounter sensitive logs. Check state-output access separately from full state access. Validate effective access using an approved synthetic identity before relying on a matrix.
Join authentication to authorization
Single sign-on (SSO) delegates sign-in to an identity provider; SCIM can provision and deprovision identities and group membership where the installed release and configuration support it. Neither grants a sound permission design automatically. Map identity groups to scoped teams, review joiner/mover/leaver workflows, and test removal of access. Keep audited emergency access separate from routine operations. Temporary provider credentials are a different boundary: they authorize a workload run against its infrastructure target. Scope the trust relationship to the intended organization, workspace and phase when supported. Do not place permanent cloud keys in variables merely for convenience.
Run controls and private execution
A production change should tie together a reviewed configuration revision, intended workspace, policy results, required run tasks and an authorized approver. Policy checks evaluate rules; run tasks can integrate external systems; notifications inform people or systems. An alert is not an approval. Scope private agents and their network access by workload trust level, rotate enrollment credentials, and review supported versions. Some releases support forwarding run-task requests through agents; verify the feature and configuration before relying on it.
Synthetic run PR-42workspace: orders-prodrevision: r42 reviewedpolicy: passrequired run task: pendingrelease approval: presentDecision: hold until task succeeds and evidence is currentA successful policy check does not demonstrate application availability. Recheck the plan and target after changes. Scheduled health assessments may detect drift or failed checks; they do not imply automatic repair. Avoid concurrent writers to the same infrastructure ownership boundary.
Monitor and recover deliberately
Collect platform service logs for availability diagnosis and audit logs for security events. Protect them because they can contain sensitive metadata. Track run queue age, failure rate, storage health, agent availability, authentication errors and backup freshness. During an incident pause new changes through approved operational procedures, preserve redacted evidence, establish whether a run was already applying, and identify the affected dependencies. A restore of Terraform Enterprise data does not reverse external infrastructure changes.
Fictional incident timeline09:00 database dependency becomes unavailable09:02 new runs held; incident owner assigned09:10 latest compatible recovery point verified09:30 isolated restore validation beginsResume only after state and actual infrastructure reconciliationThe timestamps are fictional. Avoid force-unlock or blind reapply; investigate pending writes and reconcile ownership first.
Set and test recovery objectives
Recovery point objective (RPO) is the maximum acceptable data loss measured in time; recovery time objective (RTO) is the target time to restore a service. Both are goals, not promises. A usable recovery plan includes compatible application configuration, database and object storage recovery, encryption dependencies, access controls and verification. Use the supported backup method for the selected release and storage mode. Preserve required keys and configuration through approved protected procedures; do not include them in a training bundle.
Exercise: RPO = 30 min, RTO = 120 minFailure: 10:00; recovery point: 09:40; validated service: 11:35Data-loss window: 20 min; recovery elapsed: 95 minBoth illustrative targets met; verify actual infrastructure separately.Test restores in isolated environments. Keep restore evidence, dependency compatibility and a rollback or forward-recovery decision. Before upgrading, read the supported path and breaking changes, rehearse recovery and plan maintenance; do not assume downgrading an image reverses database migrations.
Practice and next step
Use the access and recovery case worksheet. Identify excessive privileges, missing approvals and recovery objectives that are not met. Explain why a restored service still needs a state and infrastructure reconciliation gate. Reference: terraform-concept-enterprise-governance-and-recovery. Official reading: https://developer.hashicorp.com/terraform/enterprise/users-teams-organizations/permissions, https://developer.hashicorp.com/terraform/enterprise/deploy/manage/backup-restore and https://developer.hashicorp.com/terraform/enterprise/deploy/manage/monitor/logs. The next chapter introduces Stacks and orchestration.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Enterprise governance and recovery — knowledge check
Review enterprise deployment and governance decisions.
Can a narrow workspace grant cancel broader organization access?
What does SCIM primarily help manage?
What should happen if a required run task is pending?
What is RPO?
After restoring platform data what remains necessary?