[FEATURE] Implement Non-Plaintext SASL Authentication Mechanisms in Raven SASL
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- authentication
Direzione di ricerca
Start by reading the Raven SASL implementation and its mechanism negotiation and advertisement entry points; this issue does not name files or tests. The scope spans many mechanisms with distinct RFC flows, credential storage requirements, and interoperability expectations. Done means implementing and independently testing the supported mechanisms, handling errors appropriately, and documenting their requirements and security considerations.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Raven SASL currently supports plaintext authentication mechanisms (e.g. PLAIN / LOGIN), which rely on transport-level security (TLS) to protect user credentials. While this approach is widely used, modern and legacy mail systems also support non-plaintext SASL authentication mechanisms, where the user’s password is never transmitted over the network.
Why is this feature needed?
This parent issue tracks the work required to design, implement, and integrate all supported non-plaintext SASL authentication mechanisms into Raven SASL, in alignment with relevant RFCs and common server implementations (e.g. Dovecot).
Non-plaintext mechanisms improve security by using challenge-response, salted proofs, tickets, or external credentials, and are safe even without TLS (though TLS is still recommended).
Alternatives Considered
Goals
- Add first-class support for standard non-plaintext SASL mechanisms
- Ensure correct RFC-compliant challenge/response flows
- Allow Raven SASL to interoperate with common SMTP/IMAP/POP3 clients
- Provide a clear abstraction for password handling and mechanism-specific requirements
- Enable future extensibility for modern authentication methods
Additional Context
Scope of Work
This issue covers all non-plaintext authentication mechanisms, including but not limited to:
Challenge-Response / Hash-Based
- CRAM-MD5 (RFC 2195)
- DIGEST-MD5 (legacy, limited support)
- APOP (POP3-specific)
SCRAM (Salted Challenge Response)
- SCRAM-SHA-1 (RFC 5802)
- SCRAM-SHA-256 (RFC 7677)
External / Ticket-Based
- GSSAPI (Kerberos v5)
- GSS-SPNEGO (RFC 4178)
- NTLM (Microsoft clients)
Token / Certificate Based
- EXTERNAL (TLS client certificates)
- OAUTHBEARER (RFC 7628)
- XOAUTH2 (Google OAuth variant)
Special-Purpose
- ANONYMOUS
- OTP / SKEY
- RPA (legacy)
Design Considerations
- Non-plaintext mechanisms require access to plaintext passwords or mechanism-specific password hashes
- Common one-way hashes (e.g. MD5, DES,
crypt) are insufficient - Success/failure backends (e.g. PAM-style verification) cannot support non-plaintext mechanisms
- Each mechanism has unique state handling and message flow requirements
- Mechanism negotiation and advertisement must follow:
- SASL rules
- Protocol-specific rules (SMTP, IMAP, POP3)
Acceptance Criteria
- Raven SASL correctly implements challenge/response flows for each supported mechanism
- No plaintext password is transmitted during authentication
- Mechanisms are independently testable
- Clear error handling with RFC-appropriate response codes
- Interoperability verified with common mail clients and servers
- Documentation is added covering:
- Supported mechanisms
- Storage requirements
- Security considerations
Out of Scope
- UI or client-side implementation
- TLS implementation details
- Plaintext authentication mechanisms (tracked separately)
References
- RFC 4422 – Simple Authentication and Security Layer (SASL)
- RFC 2195 – CRAM-MD5
- RFC 5802 – SCRAM-SHA-1
- RFC 7677 – SCRAM-SHA-256
- RFC 4178 – GSS-SPNEGO
- RFC 7628 – OAUTHBEARER
- Dovecot SASL Authentication Documentation
- Lingua principale
- Go
- Stelle
- 12
- Fork
- 13
- Merge medio
- 2g 3h
- PR unite (30g)
- 8
Preparare l'ambiente
- Include un Dockerfile o un 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 OpenGovMail/raven
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenGovMail/raven#338 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] UNSELECT accepts extra arguments instead of returning BADForse già presa @tharinfernando l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenGovMail/raven#322 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] NAMESPACE accepts extra arguments instead of returning BADForse già presa @tharinfernando l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#321 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#320 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#319 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenGovMail/raven
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
agent-in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
jordansmall/spindrift#7716 ·
I maintainer di solito rispondono entro 1 giorno
-
bug 🪲 needs-triage :mag:
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Azure/azure-service-operator#5880 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-type
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
`create_branch` returns a bare 404 when the token has no push accessForse già presa @aloneangel45 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
github/github-mcp-server#3994 ·
I maintainer di solito rispondono entro 2 giorni