LoopForge icon indicating copy to clipboard operation
LoopForge copied to clipboard

[Feature]: 页面管理自定义 PAT / Secret,并按需绑定到 SOP 脚本节点

Open sennoy11012 opened this issue 1 week ago • 2 comments

Problem

Python/Shell SOP nodes need a PAT to read external APIs, for example GitLab Pipelines/Jobs to verify a release. LoopForge lacks a complete page-managed workflow for storing a custom business secret and explicitly binding its reference to one script node. Git repository authentication, model keys and MCP credentials do not cover arbitrary script API access.

Proposed behavior

  • Manage personal/project secrets in the UI: name, owner, target host, replace/revoke, and write-only values. Encrypt stored values.
  • Bind a secret reference to a script environment variable, e.g. gitlab-readonly-pat -> GITLAB_PAT. Store only references in SOP definitions/revisions/exports.
  • Check missing/revoked/unauthorized bindings before execution with actionable setup guidance; never report a missing check as passed.
  • Inject only authorized secrets into the selected node/process across platform, Docker and remote Runner execution; clear temporary material afterward.
  • Redact logs/errors/streamed output, enforce project isolation, and audit usage. Template copies must require their own credential binding.

Acceptance

A user saves a PAT through the page, binds it to a Python/Shell node, calls a read-only external API, then rotates/revokes it without editing the script. No plaintext appears in SOP JSON, exported templates, API responses or logs. Cover missing credentials, permission denial, copy/export, remote execution and cleanup.

Related work

Searched issues (all states) for secret, credential, PAT, 密钥 and 凭证, plus related discussions. #128, #1038 and #1039 concern GitLab repository support/token verification; #1015 concerns host-scoped Git authentication. This request adds explicit secrets for general script API calls. Deployment environment variables or a custom MCP are alternatives, but do not provide this UI workflow.

No private hosts, credentials or organization-specific infrastructure are required.

sennoy11012 avatar Nov 19 '26 08:11 sennoy11012

Thanks for the feature request. I understand you want a page-managed way to store a custom PAT or secret and bind only a reference of it to a Python or Shell SOP script node, so the script can call an external API without putting the secret into the SOP definition.

This is noted and will be reviewed along with the existing issue queue. No delivery date is promised here.

cocofhu00 avatar Nov 19 '26 08:11 cocofhu00

Closed: project-managed credentials and secrets are now available and can be bound to SOP script nodes. Credentials are stored encrypted and injected as sandbox environment variables for the selected workspace or SOP.

Covered by merged PRs:

  • #1295 — feat(projects): add project-scoped sandbox credentials: username/password, API Token / API Key, AK/SK and custom variable groups, selectable for a conversation workspace or a SOP, with encrypted storage
  • #1340 — feat(web): redesign project credentials page with sandbox env guide: clearer management UI and guidance on how project credentials are exposed as sandbox variables

crispinhu27 avatar Nov 30 '26 09:11 crispinhu27