Skip to content

Fix proxy permission leak and redact sensitive error descriptions#4748

Open
huanghongbo-hhb wants to merge 14 commits into
koderover:mainfrom
huanghongbo-hhb:fix/sensitive-credential-leaks
Open

Fix proxy permission leak and redact sensitive error descriptions#4748
huanghongbo-hhb wants to merge 14 commits into
koderover:mainfrom
huanghongbo-hhb:fix/sensitive-credential-leaks

Conversation

@huanghongbo-hhb

@huanghongbo-hhb huanghongbo-hhb commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore the system admin check on the proxy list API
  • redact sensitive values from error descriptions before returning them to clients

Why

  • the proxy list endpoint could expose stored proxy credentials
  • downstream integration errors could leak credentials in URLs and raw error text

Risk / Compatibility

  • low risk: this only narrows proxy list access and masks secret values in error descriptions

Test

  • verified in UAT: non-admin proxyManage now returns 403, and Nacos/PingCode validation errors redact credentials

Contact


This change is Reviewable

Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Comment thread pkg/microservice/aslan/core/system/handler/proxy.go
Comment thread pkg/microservice/aslan/core/workflow/service/workflow/controller/job/job_nacos.go Outdated
Comment thread pkg/tool/nacos/error_humanizer.go Outdated
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Comment thread pkg/microservice/aslan/core/system/service/proxy.go Outdated
Comment thread pkg/tool/errors/errors.go
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants