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

extenddb destroy cannot take Cassandra credentials

Aperta Adatta ai principianti
#500 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
77/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cassandra, rust
Ambito
cli, databases

Direzione di ricerca

Confronta il comando destroy in crates/app con cmd_migrate.rs, che secondo l’issue supporta le credenziali Cassandra. Poi segui il modo in cui crates/storage-cassandra/src/bootstrapper.rs legge le credenziali dell’amministratore e in cui il comando di migrazione passa EXTENDDB_CASSANDRA_PASSWORD. L’obiettivo è che destroy accetti le opzioni per il nome utente e la password Cassandra e la variabile d’ambiente, e che il flusso documentato di destroy Cassandra autenticato funzioni.

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

Descrizione

bug

extenddb destroy accepts --pg-user and --pg-pass (and EXTENDDB_PG_PASSWORD) and nothing else for the administrator connection. The Cassandra bootstrapper reads its administrator from --cassandra-user and --cassandra-pass in the raw argument list (crates/storage-cassandra/src/bootstrapper.rs, lines 73 to 75), falling back to $USER with no password. destroy is a clap command, so --cassandra-user is rejected before the bootstrapper sees it:

$ extenddb destroy --config extenddb.toml --cassandra-user cassandra --yes
error: unexpected argument '--cassandra-user' found

and without it the connection is attempted as the operating-system user with no password:

$ EXTENDDB_CASSANDRA_PASSWORD=cassandra extenddb destroy --config extenddb.toml --yes
Error: Cannot connect as admin: Create engine: Connection error: Connection timeout after 10s. Check that Cassandra is running and accessible at ["127.0.0.1:9042"]. If authentication is enabled, verify username/password are correct.

Measured on a cassandra:4.1 node with PasswordAuthenticator enabled, which init requires (the default AllowAllAuthenticator rejects the application role's password with CassandraRoleManager doesn't support PASSWORD), after a successful init, verify and serve with the same build. init and migrate both have --cassandra-user, --cassandra-pass and EXTENDDB_CASSANDRA_PASSWORD (crates/app/src/cmd_migrate.rs, lines 52 and 106); destroy does not.

Fix: give destroy the same three Cassandra inputs, passing EXTENDDB_CASSANDRA_PASSWORD through the way cmd_migrate does. Until then the install page documents dropping the keyspaces and the application role with cqlsh.

Found while working on #492.

Lingua principale
Rust
Stelle
517
Fork
60
Merge medio
4g 10h
PR unite (30g)
37

Preparare l'ambiente

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 ExtendDB/extenddb

Tutte le issue di ExtendDB/extenddb

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.