fleetd #266: rename SSH agent environment setting #268

Closed
agent wants to merge 0 commits from worker/fleetd-266-sshagent-rename-a014ff-6 into main
Member

Implements fleetd #266.

Changes:

  • Renames the setting to memberCredentials.sshAgentEnv with omit/inherit values.
  • Keeps old sshAuthSock and block/allow spellings silent and compatible.
  • Uses sshAgentEnv when both keys are present, including an unrecognised new value.
  • Unknown values normalize to omit, so configuration fails closed.
  • Keeps the full example comment about what omitting SSH_AUTH_SOCK does and does not protect.

Accepted key/value pairs: sshAuthSock:block, sshAuthSock:allow, sshAuthSock:omit, sshAuthSock:inherit, sshAgentEnv:block, sshAgentEnv:allow, sshAgentEnv:omit, sshAgentEnv:inherit.

Tests:

  • Mutation proof: removed the read-both shim and ran FleetConfigTest#sshAgentEnvAcceptsBothKeysWithBothValueSpellings. It failed: expected but was for sshAuthSock: allow. Restored the shim. git diff --exit-code was clean after the commit.
  • cd fleetd && mvn clean install: Tests run: 1267, Failures: 0, Errors: 0, Skipped: 0; BUILD SUCCESS.
Implements fleetd #266. Changes: - Renames the setting to memberCredentials.sshAgentEnv with omit/inherit values. - Keeps old sshAuthSock and block/allow spellings silent and compatible. - Uses sshAgentEnv when both keys are present, including an unrecognised new value. - Unknown values normalize to omit, so configuration fails closed. - Keeps the full example comment about what omitting SSH_AUTH_SOCK does and does not protect. Accepted key/value pairs: sshAuthSock:block, sshAuthSock:allow, sshAuthSock:omit, sshAuthSock:inherit, sshAgentEnv:block, sshAgentEnv:allow, sshAgentEnv:omit, sshAgentEnv:inherit. Tests: - Mutation proof: removed the read-both shim and ran FleetConfigTest#sshAgentEnvAcceptsBothKeysWithBothValueSpellings. It failed: expected <inherit> but was <omit> for sshAuthSock: allow. Restored the shim. git diff --exit-code was clean after the commit. - cd fleetd && mvn clean install: Tests run: 1267, Failures: 0, Errors: 0, Skipped: 0; BUILD SUCCESS.
agent added 1 commit 2026-09-03 15:13:15 +02:00
fleetd #266: rename SSH agent environment setting
CI / contract (pull_request) Successful in 1m29s
CI / build (pull_request) Successful in 2m1s
d42c2bc204
ltms closed this pull request 2026-09-04 03:26:38 +02:00
Some checks are pending
CI / contract (pull_request) Successful in 1m29s
CI / build (pull_request) Successful in 2m1s

Pull request closed

Sign in to join this conversation.