Login fails without Secret Service (headless Linux/WSL2): consider a file-based fallback
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, linux
- 領域
- authentication, cli, security
調査の方向性
Start by reading internal/keyring/keyring.go and tracing credential encryption and retrieval from the nais login -n and nais alpha mcp serve entry points. Reproduce the missing Secret Service behavior on headless Linux or WSL2, then agree on the opt-in fallback and its configuration surface. Done means the selected store works with appropriate file permissions and unusable systems receive an actionable error, with tests covering both paths.
索引モデルが issue の本文から書いたものです。
説明
nais/cli keeps its credentials encryption key in the OS keyring through zalando/go-keyring (internal/keyring/keyring.go, service cli.nais.io). On Linux, go-keyring only supports Secret Service over the D-Bus session bus, and has no fallback.
On headless WSL2, or on servers without gnome-keyring or KeePassXC, nais login -n likely fails at keyring.SetBytes. We inferred this from the source and haven't reproduced it on a real host. As a result, the Nais MCP server (nais alpha mcp serve) can't be used there.
Suggestion: an opt-in file-based key store, for example under the config dir with mode 0600, or an env/flag to choose it. Also a clear error that points to installing a Secret Service provider.
Context: Nav's cplt sandbox runs nais alpha mcp serve on the host for AI agents (navikt/cplt#838), and we want it to work on WSL2.
- 主要言語
- Go
- スター
- 2
- フォーク
- 5
- 平均マージ
- 3時間 3分
- マージ済み PR(30日)
- 30
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nais/cli のほかの issue
-
mcp: schema_list_queries returns an array as structuredContent, and its outputSchema is invalidオープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
[Bug]: Telegram bot (v3.11.0): "Ban log" no longer sends the current 3xipl-banned.log対応中かも @HamedSanaei が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
MHSanaei/3x-ui#6990 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
bug(tool/internal/instrument): identical inject_code rules from two rule packages are applied twiceオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
open-telemetry/opentelemetry-go-compile-instrumentation#1611 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
agent-butler-finding chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jordansmall/spindrift#6114 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信