Skip to content

Add security policy to block endpoints#2087

Merged
MarceloRGonc merged 3 commits intomainfrom
mg/OPS-3879
Mar 10, 2026
Merged

Add security policy to block endpoints#2087
MarceloRGonc merged 3 commits intomainfrom
mg/OPS-3879

Conversation

@MarceloRGonc
Copy link
Copy Markdown
Contributor

Fixes OPS-3879.

Copilot AI review requested due to automatic review settings March 9, 2026 11:08
@linear
Copy link
Copy Markdown

linear Bot commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds route-level security policy metadata for select “block” endpoints to better describe authenticated/project-scoped access (Fixes OPS-3879).

Changes:

  • Add project-scoped route security policies to community block install and base blocks endpoints.
  • Add project-scoped route security policy (with READ_FLOW) to block variable execution endpoint.
  • Introduce Permission usage where relevant to express required access in the route policy.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
packages/server/api/src/app/blocks/community-block-module.ts Adds project-scoped security policy metadata to the community block install endpoint.
packages/server/api/src/app/blocks/base-block-module.ts Adds project-scoped security policy metadata to blocks/options and blocks delete endpoints (one endpoint needs a runtime principal restriction fix).
packages/server/api/src/app/block-variable/block-variable-module.ts Adds project-scoped security policy metadata (incl. READ_FLOW) to execute-variable endpoint.

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

Comment thread packages/server/api/src/app/blocks/base-block-module.ts
@sonarqubecloud
Copy link
Copy Markdown

@MarceloRGonc MarceloRGonc merged commit 964df4c into main Mar 10, 2026
25 checks passed
@MarceloRGonc MarceloRGonc deleted the mg/OPS-3879 branch March 10, 2026 10:32
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