AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=false does not mask instance token
维护者通常 8 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- typescript
调研方向
Locate the GET /instance/fetchInstances handler and the AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES flag handling; first trace how apikey and hash are currently removed. Reproduce with the flag false and verify that token is omitted or masked for every returned instance, while the existing authentication fields remain protected.
由索引模型根据 Issue 内容生成。
描述
Summary: With AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=false, GET /instance/fetchInstances still returns the instance token field. Only apikey/hash are masked.
Environment: Evolution API v2.3.7, env AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=false.
Endpoint: GET /instance/fetchInstances
Expected behavior: When the flag is false, sensitive authentication material (apikey, hash, token) should be omitted or masked from the response.
Actual behavior: The response still contains the full token (a 36-char UUID) for each instance. Verified live on v2.3.7 with the flag set to false: { hasToken: true, tokenLen: 36, hasApiToken: false, hasHash: false, hasApikey: false } — hash and apikey are suppressed, but token is not.
Repro steps:
- Start the API with
AUTHENTICATION_EXPOSE_IN_FETCH_INSTANCES=false. GET /instance/fetchInstanceswith the globalapikeyheader.- Inspect the JSON: each instance still includes a
tokenfield with the full instance token.
Impact: Instance tokens (which grant session-level access) are exposed even when the operator explicitly disables exposure in fetchInstances.
- 主要语言
- TypeScript
- 星标
- 9.8k
- 派生
- 7.3k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
evolution-foundation/evolution-api 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
evolution-foundation/evolution-api#2723 ·
维护者通常 8 天内回复
-
难度 1/5 1-3 小时 新手友好度 88/100
evolution-foundation/evolution-api#2704 ·
维护者通常 8 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
evolution-foundation/evolution-api#2702 · 1 条评论 · 2 个 reaction ·
维护者通常 8 天内回复
-
[BUG] Cloud API: a single unknown wamid in a `statuses` batch silently drops the whole batch (`return` instead of `continue`)可能已有人在做 @vin1i 于 44 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 88/100
evolution-foundation/evolution-api#2700 · 1 条评论 ·
维护者通常 8 天内回复
-
[BUG] Chatwoot integration duplicates messages when a device re-delivers the same key.id — getExistingSourceIds exists but is never called on the live path可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
evolution-foundation/evolution-api#2675 ·
维护者通常 8 天内回复
查看 evolution-foundation/evolution-api 的全部 Issue
相似的 Issue
-
area:deploy task
难度 2/5 1-3 小时 新手友好度 72/100
wilanis/wilanis-js#1017 ·
维护者通常 1 天内回复
-
documentation v2
难度 2/5 1-3 小时 新手友好度 76/100
modelcontextprotocol/servers#5133 ·
维护者通常 1 天内回复
-
budget bug feature frontend good-issue medium needs-review OSCI'26 payments
难度 2/5 1-3 小时 新手友好度 75/100
SatyamPandey-07/WorkSphere#5990 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
lugassawan/swe-workbench#799 ·
维护者通常 1 天内回复
-
bug good first issue javascript
难度 2/5 1-3 小时 新手友好度 82/100
yukikotani231/sqlsift#326 ·
维护者通常 1 天内回复