Skip to content

Conversation

@lidel
Copy link
Member

@lidel lidel commented Nov 16, 2025

This PR closes the gap and adds extra test coverage for security-sensitive config settings:

Identity.PrivKey protection:

  • PrivKey concealed in ipfs config show
  • PrivKey cannot be read via ipfs config Identity.PrivKey or ipfs config Identity
  • PrivKey cannot be set via ipfs config replace
  • PrivKey preserved when re-injecting config without it

TLS security validation:

  • AutoConf.TLSInsecureSkipVerify defaults to false (secure)
  • HTTPRetrieval.TLSInsecureSkipVerify defaults to false (secure)
  • both settings can be explicitly enabled when needed

No code changes, as all tests pass. This is just a precaution for future refactors.

adds critical test coverage for security-sensitive config settings:

Identity.PrivKey protection:
- PrivKey concealed in `ipfs config show`
- PrivKey cannot be read via `ipfs config Identity.PrivKey` or `ipfs config Identity`
- PrivKey cannot be set via `ipfs config replace`
- PrivKey preserved when re-injecting config without it

TLS security validation:
- AutoConf.TLSInsecureSkipVerify defaults to false (secure)
- HTTPRetrieval.TLSInsecureSkipVerify defaults to false (secure)
- both settings can be explicitly enabled when needed

all tests pass (9/9)
@lidel lidel requested a review from a team as a code owner November 16, 2025 16:51
@lidel lidel added the skip/changelog This change does NOT require a changelog entry label Nov 16, 2025
@lidel lidel merged commit 597f2b8 into master Nov 17, 2025
17 checks passed
@lidel lidel deleted the test/config-secrets-coverage branch November 17, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip/changelog This change does NOT require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants