Skip to content

fix(credserver): reject arbitary headers, empty server urls & cred-helper binaries with path separator#1785

Open
Swapnanil-Gupta wants to merge 2 commits into
mainfrom
creds-fixes
Open

fix(credserver): reject arbitary headers, empty server urls & cred-helper binaries with path separator#1785
Swapnanil-Gupta wants to merge 2 commits into
mainfrom
creds-fixes

Conversation

@Swapnanil-Gupta

@Swapnanil-Gupta Swapnanil-Gupta commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

  • credserver will now reject requests with arbitrary X-Finch-Env-* headers.
  • credserver will now check if credsStore defined in DOCKER_CONFIG contains a path separator or not and reject requests if it does.
  • credserver will now reject requests with empty server parameter.
  • credserver will now start with / as its CWD.

cc @ayush-panta

Testing done:

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Swapnanil-Gupta Swapnanil-Gupta force-pushed the creds-fixes branch 3 times, most recently from f00081b to 7ca31ab Compare July 9, 2026 06:35
@Swapnanil-Gupta Swapnanil-Gupta marked this pull request as ready for review July 9, 2026 06:35
@Swapnanil-Gupta Swapnanil-Gupta changed the title fix(creds-server): reject arbitary headers and cred helper binaries fix(credserver): reject arbitary headers and cred helper binaries Jul 9, 2026
Comment thread pkg/credserver/utils_darwin.go Outdated
@Swapnanil-Gupta Swapnanil-Gupta force-pushed the creds-fixes branch 2 times, most recently from 7155fd4 to 5441e9d Compare July 10, 2026 18:50
@Swapnanil-Gupta Swapnanil-Gupta changed the title fix(credserver): reject arbitary headers and cred helper binaries fix(credserver): reject arbitary headers, empty server urls & cred-helper binaries with path separator Jul 10, 2026
credhelper names containing path separator

Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants