Skip to content

tighten access controls for global licence routes#18493

Open
andz-bb wants to merge 5 commits intomasterfrom
fix-license-endpoint
Open

tighten access controls for global licence routes#18493
andz-bb wants to merge 5 commits intomasterfrom
fix-license-endpoint

Conversation

@andz-bb
Copy link
Copy Markdown
Contributor

@andz-bb andz-bb commented Apr 8, 2026

Description

  • refine global licence route access to match current product usage
  • keep read-only licence checks available where builder flows depend on them
  • add route-level coverage for both allowed and denied access paths

Addresses

https://github.com/Budibase/vulns/issues/40
https://github.com/Budibase/budibase/security/advisories/GHSA-4wr8-5c3p-rjcr

Launchcontrol

tighten access controls for global licence routes

@github-actions github-actions bot added the size/s label Apr 8, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

)

loggedInRoutes
adminRoutes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This probably needs to support builders

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.

good call, I have opened up GET /api/global/license/usage and /api/global/license/key to all logged in users. I don't think non-admins need access to other license endpoints

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="packages/worker/src/api/routes/global/license.ts">

<violation number="1" location="packages/worker/src/api/routes/global/license.ts:18">
P1: These GET endpoints were moved from adminRoutes to loggedInRoutes, which is defined without auth.adminOnly. That drops the admin-only restriction and lets non-admin users read license usage/key data.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

@andz-bb andz-bb requested a review from adrinr April 8, 2026 17:06
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

}).required()
)

loggedInRoutes
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should that not be builderOrAdminRoutes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants