Documentation for JIRA 5.2. Documentation for other versions of JIRA is available too.
The following outlines some basic techniques to secure an Apache Tomcat instance. This is a basic must-do list and should not be considered comprehensive. For more advanced security topics see the "Further Information" section below.
Tomcat は、絶対に特権ユーザー (UNIX における root、あるいは Windows における Admistrator または Local System) として実行してはいけません。
Tomcat は、低権限のユーザーとして実行します。理想的には、単一のアプリケーションを実行する目的のためのみに作成されたユーザーとして実行されるべきです。
これは、実際にはポート 80 で実行できない事を意味します。Tomcat をポート 80 で実行する必要がある場合、Apache 等の Web サーバーの背後に配置します。構成例に関しては、Integrating JIRA with Apache を参照して下さい。
sudo adduser jira-tomcat
sudo -u jira-tomcat ${CATALINA_HOME}/bin/catalina.sh run
Tomcat のインストレーションディレクトリ (CATALINA_HOME と呼ばれる場合もあります) は、Tomcat を実行するユーザーとは異なるユーザーとしてインストールする必要があります。Linux においては、Tomcat のディストリビューションを root としてアンパックするのが、これを行う最もシンプルな方法です。
残念ながら、Tomcat はディストリビューションディレクトリの一部のディレクトリに書込みアクセス権限を必要としますが、それは必要に応じてのみ有効化します。
Tomcat は、そのディレクトリ内の Admin アプリケーションがデフォルト設定された状態で出荷されます。必要でなければ、これらを無効化します。
sudo tar xzvf apache-tomcat-6.0.20.tar.gz
sudo rm -rf apache-tomcat-6.0.20/webapps/*
sudo chmod -R go-w apache-tomcat-6.0.20
cd apache-tomcat-6.0.20/; sudo chown -R jira-tomcat work/ temp/ logs/
注意: お使いのホストがドメイン/アクティブディレクトリの一部である場合は、Windows システムアドミニストレーター sysadmins に問い合わせて、適切な許可を取得します。
work, temp
and logs
directories need write and delete access for the Tomcat user. Make sure it does not have permissions to change permission or take ownership.The directory you unpack the application WAR into should not be writable by the Tomcat user (i.e. jira-tomcat
in the examples above). Again, the simplest method to do this is to unpack the WAR as root.
sudo unzip confluence-webapp-3.2.war