You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@casbin.apache.org by "BeiBaiNian (via GitHub)" <gi...@apache.org> on 2026/08/11 16:19:50 UTC

[PR] feat: add channel management for LLM API gateway [casbin-gateway]

BeiBaiNian opened a new pull request, #187:
URL: https://github.com/apache/casbin-gateway/pull/187

   This PR is part of issue #179 "make a UI-first LLM API security gateway". Channel management is the data foundation layer (milestone 1.1) that stores LLM upstream provider credentials (API keys and base URLs) for downstream routing (1.2) and token-based access control (1.3).
   
   ## What changed
   
   - Added object/channel.go: Channel data model with owner+name composite primary key, CRUD operations, ApiKey masking, SSRF-protected connectivity testing, and field-level update to prevent concurrent ApiKey overwrites.
   - Added controllers/channel.go: Six API endpoints (get-channels, get-channel, add-channel, update-channel, delete-channel, test-channel) with owner-based tenant isolation and admin cross-owner query support.
   - Added web/src/ChannelListPage.js: Channel list page with create/delete actions.
   - Added web/src/ChannelEditPage.js: Channel edit page with form fields and connectivity test button.
   - Added web/src/backend/ChannelBackend.js: Frontend API client for all six channel endpoints.
   - Modified object/ormer.go: Registered Channel table in createTable().
   - Modified routers/router.go: Registered six channel routes.
   - Modified web/src/App.js: Added Channels menu item and routes.
   
   ## Verification
   
   - go build ./... passed.
   - go vet ./... passed (pre-existing unreachable code in service/proxy.go is unrelated).
   - cd web && yarn run build passed (Compiled successfully).
   - MySQL table structure verified: 11 columns matching the Channel struct.
   - SQL CRUD tests: insert, query, duplicate rejection, delete all passed.
   - API: test-channel endpoint returns 200 OK with proper response body.
   - Frontend: Channel list page renders, create/edit/delete/test actions functional.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org


Re: [PR] feat: add channel management for LLM API gateway [casbin-gateway]

Posted by "hsluoyz (via GitHub)" <gi...@apache.org>.
hsluoyz merged PR #187:
URL: https://github.com/apache/casbin-gateway/pull/187


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@casbin.apache.org
For additional commands, e-mail: commits-help@casbin.apache.org