Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

extenddb destroy cannot take Cassandra credentials

オープン 初心者向け
#500 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
cassandra, rust
領域
cli, databases

調査の方向性

crates/app の destroy コマンドと、issue で Cassandra の認証情報をサポートしているとされる cmd_migrate.rs を比較してください。次に、crates/storage-cassandra/src/bootstrapper.rs が管理者の認証情報をどのように読み取るか、また migrate コマンドが EXTENDDB_CASSANDRA_PASSWORD をどのように渡すかを追ってください。完了条件は、destroy が Cassandra のユーザー名とパスワードのオプションおよび環境変数を受け付け、ドキュメントに記載された認証付き Cassandra destroy フローが動作することです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
517
フォーク
60
平均マージ
2日 22時間
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ExtendDB/extenddb のほかの issue

ExtendDB/extenddb の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。