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

Login fails without Secret Service (headless Linux/WSL2): consider a file-based fallback

オープン
#815 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
go, linux

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

nais/cli のほかの issue

nais/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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