GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(credentials): conceal inaccessible credential reads by TheodoreSpeaks · Pull Request #6730 · simstudioai/sim

Conversation

@TheodoreSpeaks

@TheodoreSpeaks TheodoreSpeaks commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore the generic forbidden response for workspace writers without credential access
  • add application and route regression coverage

Type of Change

  • Bug fix

Testing

Passed 501 credential tests, Sim/Auth type-check, full lint, block-registry audit, and all 26 repository audits.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

greptile-apps[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@vercel

vercel Bot commented Aug 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Aug 15, 2026 8:40am

Request Review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cursor

cursor Bot commented Aug 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

PR Summary

Low Risk
Authorization and API error-mapping change with narrow scope; tests lock in the intended concealment behavior.

Overview
Fixes GET /api/credentials/[id] so workspace writers who are not credential members get a generic 403 { error: 'Forbidden' }, instead of exposing a credential-specific denial message.

Member-level authorization now raises a dedicated CredentialAccessRequiredError, and the credential detail route uses internalCredentialDetailErrorPolicy to map that error to the generic forbidden response. PUT/DELETE keep the existing error policy.

Regression tests cover the authorized use case (deny without membership) and the route handler response shape.

Reviewed by Cursor Bugbot for commit 4a72dcb. Bugbot is set up for automated code reviews on this repo. Configure here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@greptile-apps

greptile-apps Bot commented Aug 15, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR restores a concealed forbidden response when workspace writers attempt to read credentials they cannot access.

  • Introduces a credential-specific access-denial error.
  • Maps that denial to a generic 403 response on the credential-detail route.
  • Adds use-case and route-level regression coverage.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/lib/credentials/application/authorized-credential-use-case.ts Introduces a classified error for member-level credential-access denials without changing the authorization decision.
apps/sim/lib/credentials/api/route-policies.ts Adds a detail-route policy that conceals the credential-access denial behind a generic forbidden response.
apps/sim/app/api/credentials/[id]/route.ts Applies the specialized error policy to the credential-detail GET endpoint.
apps/sim/lib/credentials/application/authorized-credential-use-case.test.ts Verifies that writers lacking credential membership are denied before the protected operation executes.
apps/sim/app/api/credentials/[id]/route.test.ts Verifies that the credential-detail route returns a generic 403 response for the new denial type.

Sequence Diagram

sequenceDiagram
  participant Writer as Workspace writer
  participant Route as GET /api/credentials/[id]
  participant UseCase as Credential read use case
  participant Policy as Detail error policy
  Writer->>Route: Request inaccessible credential
  Route->>UseCase: Execute credential read
  UseCase-->>Route: CredentialAccessRequiredError
  Route->>Policy: Project application error
  Policy-->>Writer: "403 {"error":"Forbidden"}"
Loading

Reviews (2): Last reviewed commit: "fix(credentials): conceal inaccessible c..." | Re-trigger Greptile

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TheodoreSpeaks
fix(credentials): conceal inaccessible credential reads
4a72dcb
@TheodoreSpeaks
TheodoreSpeaks force-pushed the fix/credential-rbac-concealment branch from de27b43 to 4a72dcb Compare August 15, 2026 08:40
@vercel
vercel Bot temporarily deployed to Preview August 15, 2026 08:40 Inactive
@TheodoreSpeaks

TheodoreSpeaks commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

@greptile

greptile-apps[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TheodoreSpeaks

TheodoreSpeaks commented Aug 15, 2026

Copy link
Copy Markdown
Contributor Author

@cursor review

cursor[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Aug 15, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 4a72dcb. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@TheodoreSpeaks
TheodoreSpeaks merged commit c269e88 into staging Aug 15, 2026
30 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@waleedlatif1
waleedlatif1 deleted the fix/credential-rbac-concealment branch August 15, 2026 23:33
@waleedlatif1 waleedlatif1 mentioned this pull request Aug 16, 2026
v0.8.3: sim cli, new tools, credential groups, splunk, finder-like files refactor, security hardening #6765
Merged

This branch was previously deployed

1 inactive deployment
Preview — 4a72dcbd Deployed Aug 15, 2026 by vercel[bot]
View deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@TheodoreSpeaks
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.