Skip to content

feat: Auto configure computed sensitive output fields - #129

Draft
veera-adithya-d wants to merge 2 commits into
oracle:mainfrom
veera-adithya-d:secret-handling
Draft

feat: Auto configure computed sensitive output fields#129
veera-adithya-d wants to merge 2 commits into
oracle:mainfrom
veera-adithya-d:secret-handling

Conversation

@veera-adithya-d

Copy link
Copy Markdown
Member

Description of your changes

Adds automatic sensitive-field configuration for Terraform schema fields that are computed-only string outputs and have high-confidence secret-like names. This allows generated resources to expose those values through connection details instead of leaving secret material in normal status fields.

The heuristic is wired into the default provider resource options and applies to both cluster-scoped and namespaced providers. It intentionally excludes required, optional, and optional+computed fields so user-provided inputs are not converted into secret refs.

This also includes regenerated APIs/CRDs. For example, oci_identity_domains_customer_secret_key.secret_key is now mapped as a connection detail.

Fixes #123

I have:

  • Read and followed Crossplane's contribution process.
  • Run make generate and committed the results (ideally in a separate commit).
  • Not made any manual changes to generated files, and verified this with make check-diff.

How has this code been tested

  • Added unit coverage for AutoSensitiveFieldConfiguration, including computed-only fields, required/optional exclusions, nested schemas, excluded metadata/reference names, and preserving already-sensitive fields.
  • Ran go test ./config.
  • Ran make generate and committed the generated API/CRD changes separately.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sensitive fields in created resources are not protected

1 participant