Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Changes for ACME support

Aperta
#358 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
rust
Ambito
security

Direzione di ricerca

Esamina la rappresentazione esistente di Header e l’implementazione di JWT, quindi valuta i tre approcci proposti per i campi ACME. Definisci la JWS API in jws.rs, inclusa la gestione dei payload vuoti, e verifica che i campi di Header, encode_jws e decode_jws soddisfino i requisiti POST-as-GET di ACME.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello, like #9 I'm looking into using this for an ACME implementation. I think a few other changes would be necessary

  1. Support extra fields in the header, specifically url and nonce. I'm not sure the best way to do this. I can think of three options?
    • Allow embedding Header in other structs as a flat field, and move methods out of that struct. This would probably lose type safety since there's no way to restrict arguments on struct members
    • Allow embedding a user struct in Header as a flat field, with generics. You'd still need the generic parameter even if you aren't adding any fields.
    • Just add url and nonce to Header. Header is already a superset of possible fields, and AFAIK the two main uses of JWT are Oauth2 and ACME so it doesn't seem like a stretch.
  2. Allow empty payload (in JWS at least) - per the JWT spec the payload can be any octet sequence, but is typically a base64 encoded document. ACME requires it to be "" for POST for GET in the protocol.
  3. Add a JWS structure and encode/decode methods. I was thinking of jws.rs with encode_jws and decode_jws

These are fairly small changes so I'd be glad to make a PR if it sounds reasonable.

Lingua principale
Rust
Stelle
2.1k
Fork
367
Merge medio
5g 12h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Keats/jsonwebtoken

Tutte le issue di Keats/jsonwebtoken

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.