【问题标题】:How to hide sensitive data being revealed to a non Jenkins user如何隐藏向非 Jenkins 用户透露的敏感数据
【发布时间】:2020-09-27 12:45:51
【问题描述】:

非 Jenkins 用户在尝试访问 URI 时在浏览器中显示以下错误:

HTTP ERROR 403 No valid crumb was included in the request

URI: /contextMenu
STATUS: 403
MESSAGE: HTTP ERROR 403 No valid crumb was included in the request
SERVLET: Stapler
========================================
Powered by Jetty
========================================

我们如何在 Jenkins 中向非用户隐藏上述敏感信息?

【问题讨论】:

    标签: security authentication jenkins error-handling account


    【解决方案1】:

    您可以在 Jetty releases 中看到使用的 jetty.version 变量,因此使用 -Djetty.version=xxx 运行 Jenkins 将有助于 404 页。

    403 页面并非如此。

    理想情况下,您可以将 Jenkins 嵌入到 Tomcat 服务器中,它是 easier to setup custom error pages,如 illustrated here

    【讨论】:

      猜你喜欢
      • 2020-04-29
      • 1970-01-01
      • 2021-02-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-09-12
      • 1970-01-01
      相关资源
      最近更新 更多