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

Move the Healthchecks API key out of source code

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go
領域
ci-cd, cli, security

調査の方向性

Start by reading internal/status/status.go to trace how the Healthchecks API key is used when fetching cluster status. Define the credential source and missing-credential behavior, then verify that no key remains in source, the committed key is rotated, and CI includes lightweight secret scanning.

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

説明

Problem

internal/status/status.go sets the Healthchecks API key directly in code when fetching cluster status.

For a public CLI repo, embedding service credentials in source makes key rotation harder and exposes access to anyone with the repository. Even if the current key is read-only or intentionally scoped, it should be treated as leaked once committed.

Suggested fix

  • Revoke/rotate the committed Healthchecks API key.
  • Load the key from an environment variable, config file, or backend endpoint instead of hardcoding it in the CLI.
  • Make the CLI fail with a clear message when status data requires credentials that are not configured.
  • Add a lightweight secret scanning check in CI.

Relevant file

  • internal/status/status.go
主要言語
Go
スター
0
フォーク
1
平均マージ
1日 16時間
マージ済み PR(30日)
5

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

WATonomous/watcloud-cli のほかの issue

WATonomous/watcloud-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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