9.11. 显示仪表板的登录横幅
许多管制行业,如 HIPAA、PCI-DSS 和美国。政府,要求您显示用户登录横幅。控制面板服务在容器内运行,因此您需要自定义 Dashboard 容器镜像以应用横幅。有关自定义 Dashboard 容器的更多信息,请参阅 https://access.redhat.com/documentation/zh-cn/red_hat_openstack_platform/13/html-single/introduction_to_the_openstack_dashboard/index#dashboard-customization。
9.11.1. 自定义主题 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
在自定义 Dashboard 容器中,您可以通过手动编辑 /usr/share/openstack-dashboard/openstack_dashboard/themes/rcue/templates/auth/login.html 文件来创建一个登录横幅:
在
{% include 'auth/_login.html' %}部分前立即输入所需的 logon banner。请注意,允许 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>
更新的仪表板类似如下: