feat: connect Faust.js to WordPress with an Application Password
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript, wordpress
調査の方向性
Start by tracing how FAUST_SECRET_KEY authenticates token exchange, blockset uploads, schema introspection, health checks, and telemetry in Faust.js core and the CLI; the issue does not name specific files or tests. Then check how WordPress Application Passwords expose authenticated users and capabilities. Done means these requests can use Application Passwords with the stated capability checks while the existing secret key continues to work and encrypt tokens.
索引モデルが issue の本文から書いたものです。
説明
Every request from a Faust.js server or the CLI to WordPress authenticates with the shared FAUST_SECRET_KEY: the token exchange, faust blockset, schema introspection for faust generatePossibleTypes, the CLI's health checks and telemetry. One value does all of these, so a credential that only needs to exchange tokens can also upload blocksets, and rotating it logs every user out because the plugin also uses it to encrypt tokens.
Proposal
Let core and the CLI authenticate with a WordPress Application Password instead, checked against capabilities:
faustwp_exchange_tokensfor the token exchange, health checks and telemetry. Administrators have it, and it can be added to a custom role for a dedicated user.faustwp_upload_blocksfor blockset uploads, limited to users who can manage the site's options (the network's on Multisite).- Schema introspection works for any authenticated Application Password, since WPGraphQL already allows it.
FAUST_SECRET_KEY keeps working and keeps encrypting tokens, so this is additive. Whether and when to deprecate the secret key is a separate decision.
Trade-offs
- WordPress only accepts Application Passwords over HTTPS or on local environments.
- Some servers strip the
Authorizationheader, and sites protected with HTTP Basic auth can't use Application Passwords, since both use that header (see #1850, #1524, #851).
Related
- #2673 documents Application Passwords for server-side writes, replacing the service-key idea in #2561.
- #2564 and #1512: authentication outside Next.js relies on existing tools rather than a Faust package.
- #2310 / #2312: how the secret key is compared today.
- 主要言語
- TypeScript
- スター
- 1.6k
- フォーク
- 157
- 平均マージ
- 1日 5時間
- マージ済み PR(30日)
- 121
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wpengine/faustjs のほかの issue
-
Add WordPress-style body classes to Faust pages対応中かも @josephfusco が今日担当しました。 オープン[Area] Core [Type] Enhancement
wpengine/faustjs#2682 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
[Area] Core [Area] WordPress Plugin [Type] Feature
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
wpengine/faustjs#2679 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
RFC: Raise the minimum Node.js version to 22 in the next major対応中かも @josephfusco が今日担当しました。 オープン[Area] Compatibility Breaking Change Needs Discussion
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
[Area] Core dependencies
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
wpengine/faustjs#2192 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
[Area] Core [Area] WordPress Plugin [Type] Bug Needs Reproduction
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
wpengine/faustjs#1933 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
wpengine/faustjs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
mobile-next/mobile-mcp#526 ·
メンテナーはふだん 1 日以内に返信
-
e2e-failure ready-to-code
難易度 1/5 1時間未満 初心者へのやさしさ 73/100
redhat-developer/rhdh-plugin-export-overlays#4470 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信