feat: connect Faust.js to WordPress with an Application Password
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript, wordpress
- Ambito
- authentication, backend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 1.6k
- Fork
- 157
- Merge medio
- 1g 5h
- PR unite (30g)
- 126
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wpengine/faustjs
-
Add WordPress-style body classes to Faust pagesForse già presa @josephfusco l’ha presa 1 giorno fa. Aperta[Area] Core [Type] Enhancement
wpengine/faustjs#2682 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[Area] Core [Area] WordPress Plugin [Type] Feature
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
wpengine/faustjs#2679 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
RFC: Raise the minimum Node.js version to 22 in the next majorForse già presa @josephfusco l’ha presa 1 giorno fa. Aperta[Area] Compatibility Breaking Change Needs Discussion
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
I maintainer di solito rispondono entro 1 giorno
-
Apollo Client 4 SPIKEAperta[Area] Core dependencies
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
wpengine/faustjs#2192 · 5 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
[Area] Core [Area] WordPress Plugin [Type] Bug Needs Reproduction
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
wpengine/faustjs#1933 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di wpengine/faustjs
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
zts212653/clowder-ai#1678 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
Progressive-Victory/the-website#680 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100