NASA-PDS / software-issues-repo

Issue tracking repository as a centralized entry point for general PDS software bugs and feature requests.
Apache License 2.0
0 stars 0 forks source link

As a user, I want to ensure no passwords/secrets are committed to a PDS repo #54

Closed jordanpadams closed 11 months ago

jordanpadams commented 1 year ago

🧑‍🔬 User Persona(s)

Manager / IT Security

💪 Motivation

...so that I can ensure access remains secure to our repos

📖 Additional Details

⚖️ Acceptance Criteria

Given a repository under NASA-PDS with the secrets detection enabled When I perform an update to the repo to include some username/password Then I expect the secrets detection to catch this upon push to the repo

⚙️ Engineering Details

jordanpadams commented 11 months ago

All sub-tasks complete

tloubrieu-jpl commented 8 months ago

@gxtchen this should be tested with a java repository (validate) and a python repository (doi-service).

Follow developers instructions, for example https://github.com/NASA-PDS/validate?tab=readme-ov-file#pre-commit-hooks-and-detect-secrets

Then add a password in a configuration file.

Create a branch, commit the change and push it to github.

The commit should not be pushed on github, there should be some kind of warning before.

gxtchen commented 7 months ago

@tloubrieu-jpl I am not sure what to modify for testing. I tried adding qwfjgrir#dodood to src/site/site.xml I am getting this: [INFO] This may take a few minutes... Google Java Formatter................................(no files to check)Skipped Detect secrets...........................................................Passed Google Java Formatter................................(no files to check)Skipped Detect secrets...........................................................Passed Google Java Formatter................................(no files to check)Skipped Detect secrets...........................................................Passed [i_n_t_test 39938bd0] test

nutjob4life commented 7 months ago

Rather than a password (which may not have enough entropy to pass detection threshold), I would try a personal or made-up email address.

gxtchen commented 7 months ago

@nutjob4life thank you, got the error message.