agentleFS
OpenAIKnown publisheropenai/terraform-provider-openai/AGENTS.md

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
  1. Distinctive:

    Read CONTRIBUTING.md, SECURITY.md, and RELEASING.md before changing this repository.

    line 3
  2. Very specific:

    Check .terraform-generator-manifest.json before editing provider sources, generated tests, Terraform examples, or docs/.

    line 12
  3. Very specific:

    Never commit, print, or upload real admin or API keys, bearer tokens, GitHub App private keys, GPG keys, signing passphrases, .env files, …

    line 23
  4. Very specific:

    Use clearly fake credentials, synthetic organization/project/user data, t.Setenv, and httptest or local mocks in ordinary tests and …

    line 29
  5. Common:

    Do not report security vulnerabilities through public GitHub issues, pull requests, or discussions.

    line 72

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.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 an uncoordinated manual patch. make generate regenerates provider documentation, not the upstream provider implementation.
  • Preserve the existing @openai/sdks-team ownership 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, .env files, customer data, Terraform state, saved plans, or sensitive .tfvars files. Read the provider's organization-admin credential from OPENAI_ADMIN_KEY and its project-webhook credential from OPENAI_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, and httptest or local mocks in ordinary tests and fixtures. Acceptance tests require an explicit TF_ACC=1, the audience-specific OPENAI_ADMIN_KEY and/or OPENAI_API_KEY, and applicable OPENAI_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 Authorization and 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. Treat TF_LOG, TF_LOG_PROVIDER_OPENAI_CLIENT, saved plans, and *.tfstate as sensitive; Terraform's Sensitive: true or sensitive = true hides normal display but does not guarantee that a value is absent from state or plan files.
  • Review direct and transitive dependencies, provenance, versions, and replace directives in both go.mod/go.sum and tools/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.hcl before 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 protected release and publish environments.
  • 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-team review 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. Preserve create_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.com as 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.