DATABASE connectors keep a connection-string password in plaintext and return it to the browser
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- mongodb, mysql, postgresql, typescript
調査の方向性
Start from the connector serialization in toPublicConnector() and the SecretExtractor guard that skips DATABASE. Locate connector create/update handlers to move user:password from base URL into encrypted authConfig. Extend the secret-literal repair script and add tests for pg/mysql/mongodb/mssql/oracle URLs; done means passwords never appear in API responses and existing rows can be repaired.
索引モデルが issue の本文から書いたものです。
説明
Problem
A DATABASE connector can be created with its password inside the connection string, e.g. postgresql://app:[email protected]:5432/shop. In that case:
- the password is stored in plaintext in
connectors.base_url, whileauth_configis encrypted andenv_varsare sealed at rest; toPublicConnector()masks env vars and headers but returnsbaseUrlunchanged, so the password goes back to the browser on every connector read (list, detail, update responses) and is visible to every member who can open the connector;- the secret guard that moves literal keys out of base URLs and headers (
SecretExtractor,SECRET_GUARDED_TYPES) deliberately skips DATABASE, and so does the secret-literal report/repair script.
The engine already supports the safe form: DatabaseEngine splices authConfig.username / authConfig.password into pg, mysql and mongodb URLs, and the mssql and oracle drivers read them from authConfig directly. Nothing steers a user there when they paste a full connection string.
Proposal
- On create and update of a DATABASE connector, when the URL carries
user:password@andauthConfigholds no password: move username and password into the encryptedauthConfigand store the URL without the password. The connector connects exactly as before, since the engine puts them back at call time. - In
toPublicConnector(), as a second line of defence, return a DATABASEbaseUrlwith any password replaced by a mask, and keep the stored value when an edit sends the masked URL back (same rule as masked env vars). - Existing rows: extend the secret-literal report/repair script to DATABASE base URLs, so operators can find and repair connectors created before this change.
- Tests for the three parts, including mssql/oracle/hana URLs and URLs that are not parseable (left as they are).
Deployment modes
Same behaviour on Cloud and self-hosted: both store connectors in the same table and serve them through the same API. The repair script is run by whoever operates the instance.
Open question
Whether to also refuse a password in the URL outright (400 with a hint to use the credential fields) instead of moving it silently. Moving it keeps existing API clients and imports working, so the proposal moves it.
- 主要言語
- TypeScript
- スター
- 856
- フォーク
- 82
- 平均マージ
- 7時間 57分
- マージ済み PR(30日)
- 290
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
HelpCode-ai/anythingmcp のほかの issue
-
enhancement good first issue hacktoberfest help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
HelpCode-ai/anythingmcp#982 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
Per-user sign-in for OAuth2 connectors (Enterprise)対応中かも @helpcodeai が今日担当しました。 オープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
HelpCode-ai/anythingmcp#1300 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
HelpCode-ai/anythingmcp#1296 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
HelpCode-ai/anythingmcp#1284 ·
メンテナーはふだん 1 日以内に返信
-
Translate the rest of the admin UI (DE, IT)対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
HelpCode-ai/anythingmcp#1271 ·
メンテナーはふだん 1 日以内に返信
HelpCode-ai/anythingmcp の issue をすべて見る
似ている issue
-
Plugin: sheet music can't be scrolled by hand before playback対応中かも @snakajima が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
receptron/jinglescript#51 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 9 日以内に返信
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
openclaw/openclaw#186424 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
chore(worker): five module header comments describe the code from before later issues changed itオープンarea:dev U2-later
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bentleypark/aiwatch#1824 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Pal-AI-Lab/Coopanion#469 ·
メンテナーはふだん 1 日以内に返信