Skip to content

Error parsing credentials process contained within quotes in Windows #801

@chaychoong

Description

@chaychoong

According to the documentation here, I should be able to do the following

credential_process = "C:\Path\To\credentials.cmd" parameterWithoutSpaces "parameter with spaces"

However, when I am using the following, it does not work:

[default]
credential_process = "C:\Program Files\aws_signing_helper\aws_signing_helper.exe" <params>

Using Process Monitor, we can see that the arguments are not being passed into the process. To reproduce this, set up the following dummy ~/.aws/config:

[default]
credential_process = "C:\Program Files\aws_signing_helper\aws_signing_helper.exe" test

Open up Process Monitor, filter by Process Name contains aws_signing_helper and Operation contains Process Start, then run docker pull, you should see the following:

CleanShot 2024-05-02 at 12 14 15@2x

Modify the ~/.aws/config to contain this:

[default]
credential_process = aws_signing_helper test

Make sure aws_signing_helper is in PATH, of course. Run docker pull again and you should see the following

CleanShot 2024-05-02 at 12 16 02@2x

Relevant info:
aws_signing_helper version: 1.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions