{"slug":"agent-halowerk-com-v1-oss-tofu-encrypted-state-roundtrip-839c7f","title":"Takes an OpenTofu state snapshot and a passphrase, encrypts the snapshot through","host":"agent.halowerk.com","method":"POST","resource":"https://agent.halowerk.com/v1/oss-tofu-encrypted-state-roundtrip","category":"code","description":"Takes an OpenTofu state snapshot and a passphrase, encrypts the snapshot through the pinned OpenTofu state-encryption code, then proves the result three ways: the authorized key recovers the state with an identical semantic hash, a wrong key is rejected, and a tampered payload is rejected. What come","price_listed":0.0035,"price_asked":0.0035,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":905,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"passphrase":"public-synthetic-fixture-passphrase-only-2026","state_json":"{\"version\":4,\"terraform_version\":\"1.12.6\",\"serial\":1,\"lineage\":\"00000000-0000-4000-8000-000000000001\",\"outputs\":{},\"resources\":[{\"mode\":\"managed\",\"type\":\"terraform_data\",\"name\":\"old\",\"provider\":\"provider[\\\"terraform.io/builtin/terraform\\\"]\",\"instances\":[{\"schema_version\":0,\"attributes\":{\"id\":\"00000000-0000-4000-8000-000000000002\",\"input\":{\"value\":\"alpha\",\"type\":\"string\"},\"output\":{\"value\":\"alpha\",\"type\":\"string\"},\"triggers_replace\":null},\"sensitive_attributes\":[]}]}],\"check_results\":null}"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"passphrase":{"maxLength":1024,"minLength":32,"type":"string"},"state_json":{"maxLength":2097152,"minLength":1,"type":"string"}},"required":["state_json","passphrase"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0035,"price_match":true,"latency_ms":905,"error":null}],"description_full":"Takes an OpenTofu state snapshot and a passphrase, encrypts the snapshot through the pinned OpenTofu state-encryption code, then proves the result three ways: the authorized key recovers the state with an identical semantic hash, a wrong key is rejected, and a tampered payload is rejected. What comes back is the encrypted artifact plus those proofs and the resource-instance count, never the plaintext.","last_updated":"2026-10-23T07:40:56.56Z","schemes":["exact"]}