Skip to content

fix(lumilake): accept lum.id lumid:admin scope so platform admins can submit jobs#9

Open
tjluyao wants to merge 1 commit into
mainfrom
fix/lumilake-accept-lumid-admin-scope
Open

fix(lumilake): accept lum.id lumid:admin scope so platform admins can submit jobs#9
tjluyao wants to merge 1 commit into
mainfrom
fix/lumilake-accept-lumid-admin-scope

Conversation

@tjluyao

@tjluyao tjluyao commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Problem

The lumilake plugin's PermissionPolicy.admin_scopes was {"*","lumilake:*","lumilake:admin","flowmesh:admin"}. lum.id issues its platform-admin scope as lumid:admin (super_admin PATs carry lumid:read/write/admin + flowmesh:workflows:write from /oauth/introspect). None of those matched, so the kind-level lumilake:jobs:write gate in register_resource(JOB, WRITE) rejected every lum.id caller — job submission was impossible for any real token, including super_admin.

Fix

Add lumid:admin to admin_scopes (one line), mirroring the existing flowmesh:admin rationale for shared platform admins.

Verification

Deployed to the UKS lumid-prod2 cluster (thin plugin layer on lumilake v0.1.3). Job submit went from 403 (lumilake:jobs:write required) to 422 (payload schema) with a super_admin PAT — i.e. auth/authz now pass. Also required a companion deploy-side fix (LUMID_DATA_TOKEN = a role=local key for the job-archive blob write); that one is deployment config, this is the source fix.

🤖 Generated with Claude Code

The PermissionPolicy admin_scopes ({lumilake:*, flowmesh:admin, ...}) never included
lum.id's actual platform-admin scope, lumid:admin. lum.id super_admin/admin PATs carry
lumid:read/write/admin (+ flowmesh:workflows:write) from /oauth/introspect — none of which
matched, so the kind-level lumilake:jobs:write gate rejected EVERY real caller and job
submission was impossible for any lum.id token. Add lumid:admin (mirrors the flowmesh:admin
rationale for shared platform admins). Verified end-to-end in the UKS deployment (job submit
403 -> 422).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant