此内容没有您所选择的语言版本。

Chapter 4. Securing the Console


If JBoss services need to listen on external IP addresses that may be visible to unauthorized users, it is important that authentication is enabled on the Admin Console. Failure to enable authentication could result in exposing administrative services on the JBoss Enterprise Application Platform instance to malicious users, which could result in Denial of Service (DoS) attacks.
Follow the instructions in this section to secure your Admin Console.

Note

In the instructions that follow, $PROFILE refers to the server profile used by the installation, for example, default, minimal, or any custom server profile created by the administrator. All specified paths are relative to $JBOSS_HOME.

4.1. Enabling authentication

In the following web.xml files:
  • server/$PROFILE/deploy/jmx-console.war/WEB-INF/web.xml
  • server/$PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/web.xml
Uncomment the following security-constraint fragment:
<security-constraint>
  <web-resource-collection>
    <web-resource-name>HtmlAdaptor</web-resource-name>
    <description>An example security config that only allows
  users with the
    role JBossAdmin to access the HTML JMX console web application
    </description>
    <url-pattern>/*</url-pattern>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
  </web-resource-collection>
  <auth-constraint>
    <role-name>JBossAdmin</role-name>
  </auth-constraint>
</security-constraint>
In the following jboss-web.xml files:
  • server/$PROFILE/deploy/jmx-console.war/WEB-INF/jboss-web.xml
  • server/$PROFILE/deploy/management/console-mgr.sar/web-console.war/WEB-INF/jboss-web.xml
Ensure that a fragment similar to the following is included:
<jboss-web>
  <!-- Uncomment the security-domain to enable security. You will
     need to edit the htmladaptor login configuration to setup the
     login modules used to authentication users.
  -->
  <security-domain>java:/jaas/jmx-console</security-domain>
</jboss-web>
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部