7.11. 显示仪表板的登录横幅
许多监管的行业,如 HIPAA、PCI-DSS 和 U.S。政府要求您显示用户登录横幅。仪表板服务在容器内运行,因此您将需要自定义 Dashboard 容器镜像来应用横幅。有关自定义 Dashboard 容器的更多信息,请参阅 https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.0/html-single/introduction_to_the_openstack_dashboard/index#dashboard-customization。
7.11.1. 自定义主题 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
在自定义 Dashboard 容器中,您可以通过手动编辑 /usr/share/openstack-dashboard/openstack_dashboard/themes/rcue/templates/auth/login.html 文件来创建 logon banner:
在
{% 包含 'auth/_login.html' %}部分前,输入所需的 logon 横幅。请注意,允许 HTML 标签。例如:<snip> <div class="container"> <div class="row-fluid"> <div class="span12"> <div id="brand"> <img src="../../static/themes/rcue/images/RHOSP-Login-Logo.svg"> </div><!--/#brand--> </div><!--/.span*--> <!-- Start of Logon Banner --> <p>Authentication to this information system reflects acceptance of user monitoring agreement.</p> <!-- End of Logon Banner --> {% include 'auth/_login.html' %} </div><!--/.row-fluid→ </div><!--/.container--> {% block js %} {% include "horizon/_scripts.html" %} {% endblock %} </body> </html>
更新的仪表板类似如下: