terraform-provider-openai
AGENTS.md35 starsChanged 2 months agoApache-2.0View on GitHub
Read CONTRIBUTING.md, SECURITY.md, and RELEASING.md before changing this repository. - The provider manages OpenAI Administration API resources with privileged organization credentials and beta project webhook resources with project credentials. Treat authentication, authorization, Terraform state, and published provider artifacts as security-sensitive boundaries. - Check .terraform-generator-manifest.json before editing provider sources, generated tests, Terraform examples, or docs/. Files listed in the manifest and files marked Code generated ... DO NOT EDIT are generator-owned; change their authoritative upstream source when available instead of introducing…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 1 is common, 1 is distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 3
Read CONTRIBUTING.md, SECURITY.md, and RELEASING.md before changing this repository.
- Very specific: line 12
Check .terraform-generator-manifest.json before editing provider sources, generated tests, Terraform examples, or docs/.
- Very specific: line 23
Never commit, print, or upload real admin or API keys, bearer tokens, GitHub App private keys, GPG keys, signing passphrases, .env files, …
- Very specific: line 29
Use clearly fake credentials, synthetic organization/project/user data, t.Setenv, and httptest or local mocks in ordinary tests and …
- Common: line 72
Do not report security vulnerabilities through public GitHub issues, pull requests, or discussions.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent instructions
Read CONTRIBUTING.md, SECURITY.md, and RELEASING.md before changing this repository.
Generated code and repository ownership
- The provider manages OpenAI Administration API resources with privileged organization credentials and beta project webhook resources with project credentials. Treat authentication, authorization, Terraform state, and published provider artifacts as security-sensitive boundaries.
- Check
.terraform-generator-manifest.jsonbefore editing provider sources, generated tests, Terraform examples, ordocs/. Files listed in the manifest and files markedCode generated ... DO NOT EDITare generator-owned; change their authoritative upstream source when available instead of introducing an uncoordinated manual patch.make generateregenerates provider documentation, not the upstream provider implementation. - Preserve the existing
@openai/sdks-teamownership and obtain appropriate security-focused review for changes affecting the boundaries below.
Security requirements
- Never commit, print, or upload real admin or API keys, bearer tokens, GitHub
App private keys, GPG keys, signing passphrases,
.envfiles, customer data, Terraform state, saved plans, or sensitive.tfvarsfiles. Read the provider's organization-admin credential fromOPENAI_ADMIN_KEYand its project-webhook credential fromOPENAI_API_KEY; the audiences are not substitutes for one another. Do not place a live key in Terraform configuration or examples. - Use clearly fake credentials, synthetic organization/project/user data,
t.Setenv, andhttptestor local mocks in ordinary tests and fixtures. Acceptance tests require an explicitTF_ACC=1, the audience-specificOPENAI_ADMIN_KEYand/orOPENAI_API_KEY, and applicableOPENAI_TF_ACC_*values. They can mutate real organizations, users, roles, projects, certificates, retention settings, spend controls, and webhook endpoints. Never enable them automatically or run them without an authorized isolated account or project. - Redact
Authorizationand other credential-bearing headers, cookies, signed URLs, private key material, customer identifiers, email addresses, and sensitive request or response bodies from diagnostics, fixtures, Terraform logs, crash reports, traces, and CI artifacts. TreatTF_LOG,TF_LOG_PROVIDER_OPENAI_CLIENT, saved plans, and*.tfstateas sensitive; Terraform'sSensitive: trueorsensitive = truehides normal display but does not guarantee that a value is absent from state or plan files. - Review direct and transitive dependencies, provenance, versions, and
replacedirectives in bothgo.mod/go.sumandtools/go.mod/tools/go.sum. Preserve Go module checksum verification; inspect generator/install scripts, GoReleaser hooks, Syft downloads, Terraform binaries, provider sources, and any.terraform.lock.hclbefore accepting or executing supply-chain changes. - Pin third-party GitHub Actions to reviewed full commit SHAs. Keep workflow
permissions and GitHub App tokens least-privileged; preserve
permissions: {}where present, isolate write-capable tokens and secrets from untrusted pull-request code, and keep release-only access in the existing protectedreleaseandpublishenvironments. - Protect
OPENAI_SDKS_APP_PRIVATE_KEY,GPG_PRIVATE_KEY,PASSPHRASE, and publishing tokens. Preserve the reviewed tag-triggered GoReleaser workflow, protected signing credentials, OS/architecture provider archives, per-archive SPDX SBOMs, signed SHA-256 checksums covering those SBOMs, the Terraform Registry manifest, and mandatory pre-publication SBOM verification. - Obtain security-focused
@openai/sdks-teamreview and add targeted offline regression tests for changes to admin authentication;base_url, redirects, proxies, TLS, or credential forwarding; path/import-ID validation; organization/project authorization, role grants, or service accounts; Terraform schema sensitivity, state, plans, or diagnostics; certificates, data retention, spend controls, retries, caching, or pagination; and dependency, generation, CI, signing, or release behavior. Preservecreate_service_account_only=true: service-account resources must not create API keys, grant roles implicitly, or persist credentials in Terraform state. - Report suspected vulnerabilities in the provider or its release artifacts
privately to
disclosure@openai.comas described in SECURITY.md, including the affected version/artifact and sanitized reproduction details. Do not report security vulnerabilities through public GitHub issues, pull requests, or discussions. Do not include live credentials, API keys, customer data, or unredacted sensitive logs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

