harness / harness/harness-cli

[RFE] Change Secrets File Name

Open
#37 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
25
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Presently, the API token for Harness is saved in a file called .secrets.json within the user's HOME directory. The concern with this naming choice is that it lacks distinctiveness, making it challenging to associate it as being related to Harness, similar to secret files for other providers like AWS or Terraform.

For instance, with AWS:
/Users/redacted/.aws/credentials

and for Terraform:
/Users/redacted/.terraform.d/credentials.tfrc.json

Therefore, the suggestion put forth is to house the Harness API token in one of two ways:

  1. Inside a file titled .harness.secrets.json OR
  2. Within a concealed directory named .harness created within the user's HOME directory, containing the secrets.json file.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by searching the repository for .secrets.json and the HOME-directory token path. Resolve whether .harness.secrets.json or .harness/secrets.json is the intended location before tracing the CLI's token read/write behavior. Done means the selected Harness-specific path is used consistently and the API token is no longer stored under the generic name.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.