feat: connect Faust.js to WordPress with an Application Password
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript, wordpress
- Lĩnh vực
- authentication, backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 157
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 133
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wpengine/faustjs
-
[Area] Core [Area] WordPress Plugin [Type] Feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
wpengine/faustjs#2679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Apollo Client 4 SPIKEĐang mở[Area] Core dependencies
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
wpengine/faustjs#2192 · 5 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Area] Core [Area] WordPress Plugin [Type] Bug Needs Reproduction
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
wpengine/faustjs#1933 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Multiple Queries support should support multiple of the same query with different variables/optionsĐang mở[Area] Core [Type] Enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
wpengine/faustjs#1742 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Area] Core [Type] Bug Needs Reproduction Needs Triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
wpengine/faustjs#1531 · 3 bình luận · 3 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của wpengine/faustjs
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
source-cooperative/docs.source.coop#41 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Nimblesite/SharpLsp#468 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
solidjs-community/solid-primitives#1082 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày