extenddb destroy cannot take Cassandra credentials
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 77/100
調査の方向性
crates/app の destroy コマンドと、issue で Cassandra の認証情報をサポートしているとされる cmd_migrate.rs を比較してください。次に、crates/storage-cassandra/src/bootstrapper.rs が管理者の認証情報をどのように読み取るか、また migrate コマンドが EXTENDDB_CASSANDRA_PASSWORD をどのように渡すかを追ってください。完了条件は、destroy が Cassandra のユーザー名とパスワードのオプションおよび環境変数を受け付け、ドキュメントに記載された認証付き Cassandra destroy フローが動作することです。
索引モデルが issue の本文から書いたものです。
説明
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
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ExtendDB/extenddb のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
backend:mongodb bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 2 日以内に返信
-
backend:cassandra bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
backend:cassandra bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
ExtendDB/extenddb の issue をすべて見る
似ている issue
-
bug dependencies kind:fix priority: P3 ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
shep-pm/shep#1318 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next#1165 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Alive24/shea-symphony#574 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信