Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置 ACCESS_KEY 导致 healthcheck 失败 #17090

Closed
1 task done
bestlzk opened this issue Oct 11, 2024 · 2 comments · Fixed by #17144
Closed
1 task done

配置 ACCESS_KEY 导致 healthcheck 失败 #17090

bestlzk opened this issue Oct 11, 2024 · 2 comments · Fixed by #17144
Labels
RSS bug Something isn't working

Comments

@bestlzk
Copy link
Contributor

bestlzk commented Oct 11, 2024

路由地址

NOROUTE

完整路由地址

/healthz

相关文档

null

预期是什么?

rsshub-rsshub-1健康检查应该是正常的

实际发生了什么?

由于配置了 ACCESS_KEY,健康检查请求 /healthz 路径会报错,需要取消 /healthz 路径的 ACCESS_KEY 校验

部署

自建

部署相关信息

No response

额外信息

rsshub-rsshub-1       | info: <-- GET /healthz
rsshub-rsshub-1       | error: Error in /healthz: RejectError: Authentication failed. Access denied.

这不是重复的 issue

  • 我已经搜索了 现有 issue,以确保该错误尚未被报告。
@bestlzk bestlzk added the RSS bug Something isn't working label Oct 11, 2024
@bxb100
Copy link
Contributor

bxb100 commented Oct 11, 2024

docker healthz 加上 ?key=你的 key

@bestlzk
Copy link
Contributor Author

bestlzk commented Oct 12, 2024

docker healthz 加上 ?key=你的 key

手动配置后没有问题了

healthcheck:
    test: ["CMD-SHELL", "curl -f http://localhost:1200/healthz?key=$$ACCESS_KEY"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RSS bug Something isn't working
Projects
None yet
2 participants