Skip to content

pkg/settings/cresettings: add ConfidentialWorkflows.Enabled feature gate#2165

Open
nadahalli wants to merge 4 commits into
mainfrom
tejaswi/cre-cw-enabled-flag
Open

pkg/settings/cresettings: add ConfidentialWorkflows.Enabled feature gate#2165
nadahalli wants to merge 4 commits into
mainfrom
tejaswi/cre-cw-enabled-flag

Conversation

@nadahalli

Copy link
Copy Markdown
Contributor

Adds PerWorkflow.ConfidentialWorkflows.Enabled (Setting[bool], default true) to the CRE settings schema.

This gives the confidential-workflows capability a feature flag that can be flipped in production through the scoped settings registry, with overrides resolvable at workflow, owner, org, or global level. The consuming GateLimiter lands separately in confidential-compute.

Regenerated defaults.toml / defaults.json and added the key to the README flowchart (both required by the package tests).

@nadahalli nadahalli requested a review from a team as a code owner June 17, 2026 13:37
Copilot AI review requested due to automatic review settings June 17, 2026 13:37
@github-actions

Copy link
Copy Markdown

👋 nadahalli, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (1)

pkg/settings/cresettings.Workflows (1)
  • ConfidentialWorkflows — ➕ Added

📄 View full apidiff report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new feature gate to the CRE settings schema to allow confidential-workflows executions to be enabled/disabled via scoped settings (resolvable across workflow/owner/org/global through the settings registry’s scope fallback behavior).

Changes:

  • Added PerWorkflow.ConfidentialWorkflows.Enabled (Setting[bool], default true) to the CRE settings schema and defaults.
  • Updated golden defaults (defaults.toml, defaults.json) to include the new key.
  • Updated the README mermaid flowchart to include the new setting key (required by package tests).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/settings/cresettings/settings.go Adds ConfidentialWorkflows.Enabled to the PerWorkflow schema and initializes its default to true.
pkg/settings/cresettings/README.md Documents the new setting key in the flowchart to keep the README complete per tests.
pkg/settings/cresettings/defaults.toml Regenerated defaults to include [PerWorkflow.ConfidentialWorkflows].Enabled = 'true'.
pkg/settings/cresettings/defaults.json Regenerated defaults to include PerWorkflow.ConfidentialWorkflows.Enabled = "true".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Adds PerWorkflow.ConfidentialWorkflows.Enabled (Setting[bool], default
true) so the confidential-workflows capability can be toggled in
production via the scoped settings registry, overridable at
workflow/owner/org/global. Regenerated golden defaults and README.
@nadahalli nadahalli force-pushed the tejaswi/cre-cw-enabled-flag branch from 19190ce to 6c25e6d Compare June 17, 2026 16:18
Comment thread pkg/settings/cresettings/defaults.json Outdated
"ResponseSizeLimit": "100kb"
},
"ConfidentialWorkflows": {
"Enabled": "true"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the default be set to false?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. 743b7da

Off by default; enable per workflow/owner/org/global to roll out
confidential workflows in production. Addresses review feedback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants