HSTS Preloading Should Be Opt-In
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- nginx, php, wordpress
調査の方向性
まず、WordPress コンテナ内の /etc/nginx/conf.d/spec-settings.conf を調査し、その Strict-Transport-Security ディレクティブを hstspreload.org のガイダンスと比較します。/home/dev/startup.sh に記載された workaround を確認します。HSTS のプリロードとサブドメインのカバレッジが予期せず有効にならず、必要な opt-in またはドキュメントが明確になっていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hey there 👋,
per the hstspreload.org site:
If you maintain a project that provides HTTPS configuration advice or provides an option to enable HSTS, do not include the preload directive by default. We get regular emails from site operators who tried out HSTS this way, only to find themselves on the preload list by the time they find they need to remove HSTS to access certain subdomains. Removal tends to be slow and painful for those sites.
Projects that support or advise about HSTS and HSTS preloading should ensure that site operators understand the long-term consequences of preloading before they turn it on for a given domain. They should also be informed that they need to meet additional requirements and submit their site to hstspreload.org to ensure that it is successfully preloaded (i.e. to get the full protection of the intended configuration).
The WordPress container image used by the 'WordPress on App Service' marketplace item does currently enable HSTS by default. If someone doesn't notice this, they can get really caught of guard, since now their domain and (internal) subdomains require https which browsers will remember for 1 year.
Enabling HSTS by default is maybe okay, but I don't think it should include subdomains and enable preloading, since that can have a huge impact.
$ docker run --rm --entrypoint /bin/sh mcr.microsoft.com/appsvc/wordpress-alpine-php -c 'grep -i strict-transport-security /etc/nginx/co
nf.d/spec-settings.conf'
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
At the very least this should be documented somewhere and preferably, as the hstspreload site suggests, it should be opt-in.
We noticed this thankfully at our company, and added this command to our /home/dev/startup.sh script:
sed -i '
/Strict-Transport-Security/d
' /etc/nginx/conf.d/spec-settings.conf
- 主要言語
- HCL
- スター
- 139
- フォーク
- 84
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/wordpress-linux-appservice のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
Azure/wordpress-linux-appservice#220 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Azure/wordpress-linux-appservice#223 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
Azure/wordpress-linux-appservice の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
area/cli kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
alunduil/zfs-replicate#730 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
infrastructure
難易度 1/5 1〜3時間 初心者へのやさしさ 65/100
alunduil/siren-json.hs#232 ·
メンテナーはふだん 1 日以内に返信