Repository navigation
[upstream #101] Kling single API key + plugin 1.1.1 - #107
Merged
Merged
Conversation
This was referenced Nov 1, 2026
1 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔗 关联任务 / Related Issue
🚀 变更类型 / Type of change
📝 变更描述 / Description
依序干净 cherry-pick
a8535fac1013、206e0fa5c600。Kling 接受单 API key,去除凭据首尾空白并拒绝空 key;保留 accessKey|secretKey 的 JWT 路径,插件版本升至 1.1.1。仅修改plugins/tasks/kling/plugin.js。本 PR 由 Codex 辅助移植和验证。未包含
8b253de42/fe57cba42;未涉及 #81/#82、OAuth、合并或规则修改。元数据文案已核对,原有中英描述与单位保持不变。📸 运行证明 / Proof of Work
git diff --check 154b35e2be56e127dd06ce29d5afe98d99690592..HEAD:退出 0。GOMAXPROCS=2 go test ./plugins -count=1:ok github.com/QuantumNous/new-api/plugins 0.492s。node --input-type=module内联回归检查:直接加载基线和当前插件,确认基线拒绝单 key,当前 submit/query 共 16 个凭据用例通过,包含单 key、空白规范化、空 key、格式错误、网关路径及双 key JWT;版本为 1.1.1。JWT iss、exp、nbf 保持原值。未新增仓库测试文件以保留精确上游补丁。安全核对参考 OWASP Authentication、Session Management 和 ASVS 5.0.0。本次边界为上游凭据构造:错误不包含凭据、凭据保持 Authorization header、双 key JWT 有效期不变。浏览器会话、服务端 token 验证与 replay 防护不在本补丁范围;不宣称完整 ASVS 合规。
✅ 提交前检查项 / Checklist