Skip to content

feat(catalog): expose governance config flag - #14319

Merged
erichare merged 2 commits into
feat/agent-catalog-policyfrom
feat/agent-catalog-config
Jul 31, 2026
Merged

feat(catalog): expose governance config flag#14319
erichare merged 2 commits into
feat/agent-catalog-policyfrom
feat/agent-catalog-config

Conversation

@erichare

@erichare erichare commented Jul 29, 2026

Copy link
Copy Markdown
Member

Summary

Surfaces a lightweight catalog-governance indicator through GET /api/v1/config for builder restricted-state gating.

  • add catalog_governance_enabled to the shared public/full config schema
  • derive the value from the immutable catalog policy snapshot
  • return only the boolean indicator; never serialize component/template blocklist contents
  • fail open to false if a custom policy accessor fails, logging the exception server-side without leaking it through the public response

Jira

Validation

  • test_endpoints.py -k get_config — 15 passed
  • Ruff, format, diff-check, and pre-commit hooks — passed
  • code review — no findings
  • public-config security review — no findings after exception-disclosure hardening

@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • release-.*

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3715b478-96b2-4065-a695-f2ea29237c0d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

* feat(catalog): filter component palette by policy

* feat(catalog): filter starter templates by policy (#14321)

* feat(catalog): filter starter templates by policy

* feat(catalog): enforce component policy at runtime (#14322)
@erichare
erichare marked this pull request as ready for review July 31, 2026 19:31
@erichare
erichare merged commit 713dc19 into feat/agent-catalog-policy Jul 31, 2026
33 of 35 checks passed
@erichare
erichare deleted the feat/agent-catalog-config branch July 31, 2026 19:31
erichare added a commit that referenced this pull request Jul 31, 2026
* feat(catalog): add policy service and admin API

* feat(catalog): expose governance config flag (#14319)

* feat(catalog): expose governance config flag

* feat(catalog): filter component palette by policy (#14320)

* feat(catalog): filter component palette by policy

* feat(catalog): filter starter templates by policy (#14321)

* feat(catalog): filter starter templates by policy

* feat(catalog): enforce component policy at runtime (#14322)
@github-actions github-actions Bot added enhancement New feature or request and removed enhancement New feature or request labels Jul 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Test Coverage Advisor

No source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉

Advisory check only — never blocks merge.

erichare added a commit that referenced this pull request Jul 31, 2026
* feat(catalog): add policy service and admin API

* feat(catalog): expose governance config flag (#14319)

* feat(catalog): expose governance config flag

* feat(catalog): filter component palette by policy (#14320)

* feat(catalog): filter component palette by policy

* feat(catalog): filter starter templates by policy (#14321)

* feat(catalog): filter starter templates by policy

* feat(catalog): enforce component policy at runtime (#14322)
erichare added a commit that referenced this pull request Jul 31, 2026
* feat(catalog): add policy data model

* fix(catalog): harden foundation migration

* feat(catalog): add policy service and admin API (#14318)

* feat(catalog): add policy service and admin API

* feat(catalog): expose governance config flag (#14319)

* feat(catalog): expose governance config flag

* feat(catalog): filter component palette by policy (#14320)

* feat(catalog): filter component palette by policy

* feat(catalog): filter starter templates by policy (#14321)

* feat(catalog): filter starter templates by policy

* feat(catalog): enforce component policy at runtime (#14322)

* feat(catalog): close remaining enforcement paths (#14364)

* fix(catalog): sequence migration after provider policy

* fix(catalog): remove stale authorization test mock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant