Wire TlsConfig into ConnectionBuilder and Config
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 52/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- rust
- Ambito
- backend-api-design, security
Direzione di ricerca
Start by reading hyperdb-api-core/src/config.rs and hyperdb-api/src/connection_builder.rs, then trace the existing Client::connect call and lower-layer TlsConfig usage. Run the existing TLS tests before adding high-level integration coverage; done means TLS is exposed through the sync and async builders, demonstrated in hyperdb-api/examples/, and documented on ConnectionBuilder.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
TlsConfig exists in hyperdb-api-core but is not reachable through the public Connection / AsyncConnection / ConnectionBuilder surface. There is no with_tls() / tls() method on any of them. TLS code is built and tested at the lower layer but has no on-ramp from the high-level API.
Current state
$ grep -rn "fn with_tls\|fn tls\|TlsConfig\|tls_config" \
hyperdb-api/src/connection_builder.rs \
hyperdb-api-core/src/config.rs
# (no output)
The original gap analysis (§7 of docs/RUST_API_GAP_ANALYSIS.md in the predecessor repo) called this out:
TlsConfigexists with a full builder. But the module doc says "TODO: with_tls not yet on Config" — i.e. there is no way to pass aTlsConfigtoClient::connect(&Config).Confighas no tls field/method. TLS code exists but isn't reachable through the publicConnection/AsyncConnectionorConnectionBuilder.
Proposed work
- Add a
tls(TlsConfig) -> Selfmethod onConfiginhyperdb-api-core(or whichever structConnectionconsumes for its TLS settings). - Add a
tls(TlsConfig) -> Selfmethod onConnectionBuilderand its async counterparts. - Wire the field through to the actual
Client::connectcall so it has effect. - Add an integration test that connects to a TLS-enabled Hyper endpoint via the high-level API.
- Add an example under
hyperdb-api/examples/demonstrating TLS configuration. - Update the rustdoc on
ConnectionBuilderto mention TLS.
Backwards compatibility
Purely additive — new methods, no changes to existing signatures.
Note on cert verification
Whatever default TlsConfig produces today should remain the default. This issue is about exposing TLS, not redesigning the security defaults.
- Lingua principale
- Rust
- Stelle
- 2
- Fork
- 2
- Merge medio
- 12h 2m
- PR unite (30g)
- 60
Guida per i contributori
Apri 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 tableau/hyper-api-rust
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tableau/hyper-api-rust#294 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
tableau/hyper-api-rust#311 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
tableau/hyper-api-rust#305 ·
-
Windows Named Pipe: verify DACL denies other users, and measure read-path perf for MCP workloads Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
tableau/hyper-api-rust#302 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
tableau/hyper-api-rust#300 ·
Tutte le issue di tableau/hyper-api-rust
Issue simili
-
bug github_actions
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
registrystack/registry-stack#1393 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rocky-data/rocky#2181 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Apertabot:ai-assisted component:indexer QA-roadmap status:untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
midnightntwrk/midnight-indexer#1557 ·