6.11. Dashboard へのログインバナーの表示

HIPAA、PCI-DSS、U.S などの多くの規制産業。政府により、ユーザーログオンバナーを表示することが要求されます。Dashboard サービスはコンテナー内で実行されるため、バナーを適用するために Dashboard コンテナーイメージをカスタマイズする必要があります。Dashboard コンテナーのカスタマイズに関する詳細は、https://access.redhat.com/documentation/ja-jp/red_hat_openstack_platform/15/html-single/introduction_to_the_openstack_dashboard/index#dashboard-customization を参照してください。

6.11.1. テーマのカスタマイズ

カスタムの Dashboard コンテナーでは、/usr/share/openstack-dashboard/openstack_dashboard/themes/rcue/templates/auth/login.html ファイルを手動で編集して、ログオンバナーを作成できます。

  1. {% include 'auth/_login.html' %} セクションの直前に、必要なログオンバナーを入力します。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>

更新されたダッシュボードは、以下のようになります。

logonbanner