Popular starting points. Use Tab or arrow keys to browse results.

Skip to content
Aten SecurityThoth docs

Resources and Data Sources

Supported Terraform resources and data sources in the Thoth provider.

Every resource and data source below is in provider 0.1.19, the latest on the Terraform Registry. Pin a version range in required_providers and check the Registry docs for arguments before upgrading.

Resources

Workspace settings and integrations

ResourceManages
thoth_governance_settingsTenant governance settings, such as blocking thresholds by risk level
thoth_webhook_settingsWebhook settings
thoth_siem_settingsSIEM integration settings
thoth_agentRegisters an agent: display name, owner and approved scope; reads back its status. Destroying it keeps the registration. Provider 0.1.23 or later
thoth_agent_enforcementAn agent's mode: observe (record what enforcing would decide) or enforce. Provider 0.1.22 or later; see Observe and enforce
thoth_siem_decision_streamWhich enforcement decisions are sent to the SIEM (non_allow by default, or all with an ALLOW sample). Provider 0.1.22 or later; see SIEM decision stream
thoth_team_memberOne person and their role in the workspace. Needs use_thothctl_session: an API key cannot change who is on the team or their roles, and GovAPI refuses one. Next provider release
thoth_slack_approvalsThe Slack approvals channel and reviewers, by email. Needs use_thothctl_session. Next provider release
thoth_tenant_approversWho may approve held actions on a workspace with no Slack workspace connected, by WorkOS user ID. Needs use_thothctl_session; destroying it leaves nobody able to approve. Next provider release
thoth_model_artifactA model artifact and its activation gate: provenance verification, screening or a waiver, then activation. Next provider release
thoth_org_security_settingsSign-in security: require MFA on every sign-in, limit how long a sign-in lasts, and restrict the networks people and API keys connect from. Works with an API key, so issue that key to the security team only. Next provider release
thoth_pam_settingsPrivileged access management (PAM) step-up integration settings
thoth_webhook_testTriggers a test delivery to the configured webhook
thoth_billing_overage_capYour monthly overage cap; base pricing is not changed
thoth_data_handlingWhat Thoth keeps of tool arguments and prompts (store, hash, redact, drop); default hash arguments, drop prompts. Provider 0.1.21 or later; see Data handling
thoth_recipient_policyThe outside-recipient guard: observe (default), enforce or off; workspace domains, customer and partner domains for plain sends, and named destinations. Forwards, shares and exports to any outside address step up

Tools, profiles and policy

ResourceManages
thoth_tool_classificationThe reviewed classes of one exact tool, tenant-wide or for one agent (agent_id, 0.1.19+). Needs 0.1.17+ and tenant admin authentication
thoth_pack_assignmentThe governance profile for an agent, its pinned version and parameters
thoth_pack_assignment_bulkProfile assignments for all agents or a subset selected by agent, fleet or endpoint IDs
thoth_policy_bundleVersioned OPA or Cedar policy bundles for runtime sidecar enforcement
thoth_policyA policy rule in dev or prod: type, enforcement, agents and conditions, including numeric checks on a tool's arguments (argument conditions). Pending until an org admin approves one created with another key
thoth_policy_syncTriggers a policy sync and tracks its status
thoth_policy_exceptionA policy exception request
thoth_policy_exception_reviewA review decision on a policy exception request
thoth_policy_change_artifact_applyApplying a generated policy change artifact through an approved channel
thoth_approval_decisionApproves or denies a pending approval request

Policy bundles and exceptions with an API key

A policy bundle change made with an API key, a service or the system is accepted but pending: the bundles agents are held to do not change until a signed-in org admin, with a second factor (MFA, or on a keyless stack a fresh sign-in), approves it. That covers thoth_policy_bundle create, update and destroy. A person's own change, made with a signed-in thothctl session, still applies at once.

What you will see with Terraform:

  • terraform apply stops with the error "Policy bundle change is pending approval" and the change id. Nothing is recorded in state, so terraform plan keeps showing the change; it does not show "no changes" while the old bundle is still the one enforced. A pending terraform destroy keeps the bundle in state for the same reason.

  • An org admin lists the pending changes with GET /<tenant>/thoth/policy-bundle-changes, reads the policy with GET /<tenant>/thoth/policy-bundle-changes/<change id>, and approves or rejects it with POST to .../approve or .../reject. An approval must send the content_hash it read, as {"content_hash": "<hash>"}; without it the request is refused (400) and nothing is applied. The admin who owns the API key that made the change cannot approve it, unless an org admin turned on the audited self-approval setting for single-admin workspaces. A change waits 14 days.

  • After approval, run terraform apply again. It returns the approved bundle and saves its id, without publishing a copy. After an approved destroy, run terraform destroy again.

  • With thothctl, signed in as a person (an API key is refused before anything is sent):

    thothctl governance bundle-changes list                 # pending changes (--status approved|rejected|expired|failed|all)
    thothctl governance bundle-changes show <change-id>     # who asked, what it does, the policy text and its content hash
    thothctl governance bundle-changes approve <change-id> --content-hash <hash> --yes
    thothctl governance bundle-changes reject <change-id> --reason "duplicate of an approved change"

    approve needs the content hash show printed, so it applies only what you read, and --yes so a script cannot approve by accident (at a terminal, typing approve also works). Only printable ASCII is shown as is: every other character in the policy, names or requester is a \u{..} escape (Rego and Cedar identifiers are ASCII), with a notice, and a stronger warning for a control, invisible or direction-changing character. show --no-policy leaves out a long policy. A change that is stale, expired or whose bundle is busy gets a message saying what to do next. These routes are not yet reachable from the dashboard or MCP.

thoth_policy_exception_review and thoth_policy_change_artifact_apply are a signed-in person's decision: an API key is refused (403). A key may still create an exception request (thoth_policy_exception). The reviewer is never the person who made the request, or who owns the key that made it.

MCP servers

ResourceManages
thoth_mcp_vendorMCP vendor registry entries used for allowlist enforcement
thoth_mcp_catalog_verifyA verification of the MCP tool catalog derived from a principal's or role's grants

Keys, fleets and endpoints

ResourceManages
thoth_agent_api_keyA scoped, just-in-time key for one agent
thoth_fleet_api_keyA scoped, just-in-time key for a fleet
thoth_endpoint_api_keyA scoped, just-in-time key for an endpoint; with kind = "mcp_gateway" and allowed_agents and allowed_tools, the MCP gateway's runtime key
thoth_fleetA fleet and its lifecycle metadata
thoth_endpointAn endpoint record
thoth_mdm_providerAn MDM provider integration: jamf, intune, workspace_one or custom
thoth_mdm_syncTriggers and tracks an MDM sync job
thoth_browser_providerBrowser policy provider connectivity
thoth_browser_policyBrowser policy definitions for a provider
thoth_browser_enrollmentBrowser enrollment records

Evidence

ResourceManages
thoth_evidence_backfillBackfills governance evidence records from behavioral events
thoth_decision_field_backfillBackfills normalized decision evidence fields
thoth_evidence_packBuilds a signed evidence pack for a period (destroying it keeps the pack); download and verify with thothctl evidence pack download and thothctl evidence verify --pack

Data sources

AreaData sources
Settings and keysthoth_tenant_settings, thoth_api_keys, thoth_api_key_authorization, thoth_api_key_metrics
Approvals and exceptionsthoth_approvals, thoth_policy_exception, thoth_policy_exceptions
Profiles and policythoth_governance_packs, thoth_governance_pack_rules, thoth_governance_pack_rule_versions, thoth_governance_tools, thoth_tool_inventory (each tool with Thoth's advisory recommendation; read-only), thoth_policy_bundles, thoth_effective_policy_bundles, thoth_policy_change_artifact, thoth_policy_change_artifacts, thoth_model_artifacts
Runtime and activitythoth_governance_runtime_status, thoth_governance_feed, thoth_decisions (0.1.21 or later; see Decisions)
Evidence and forensicsthoth_evidence_chain, thoth_evidence_verify, thoth_evidence_bundle, thoth_evidence_packs, thoth_governance_evidence_slos, thoth_session_forensics, thoth_incident_forensics, thoth_agent_latest_forensics, thoth_agent_observe_summary (what observe would have blocked, and Ready to enforce)
Reportsthoth_governance_day7_report, thoth_governance_reports_overview, thoth_governance_cost_report, thoth_governance_executive_summary, thoth_governance_board_incident_summary, thoth_report_data
MCPthoth_mcp_vendors, thoth_mcp_vendor, thoth_mcp_inventory_report, thoth_mcp_inventory_digest
Fleets and endpointsthoth_fleets, thoth_fleet, thoth_endpoints, thoth_endpoint_stats, thoth_mdm_providers, thoth_mdm_sync_job, thoth_browser_providers, thoth_browser_policies, thoth_browser_enrollments
Billingthoth_billing_pricing, thoth_billing_estimate, thoth_billing_monthly_cost, thoth_billing_credit_bank, thoth_billing_invoices, thoth_billing_artifacts, thoth_billing_artifact, thoth_billing_reports, thoth_billing_report

Read-only billing invoice JSON

thoth_billing_invoices is read-only and returns:

  • invoices_json
  • totals_json
  • response_json

Import support

All provider resources support Terraform import. Use import blocks or terraform import to bring existing tenant objects under Terraform state before applying changes.

Full schema reference

For argument and attribute-level schema documentation, use the Terraform Registry provider docs:

  • registry.terraform.io/providers/atensecurity/thoth/latest

On this page