Skip to content

posts/2026-02-26-argocd-aws-codecommit-credentials - ArgoCD never invokes the configured Git credential helper #149

Description

@adalsa91

Hi,

I was trying to follow the approach described in your article about using AWS CodeCommit with ArgoCD via IRSA and the AWS CodeCommit credential helper:

posts/2026-02-26-argocd-aws-codecommit-credentials

I managed to get all of the underlying pieces working:

  • IRSA is correctly configured on argocd-repo-server
  • The pod can assume the IAM role
  • AWS CLI is available inside the repo-server container
  • aws codecommit credential-helper works
  • git ls-remote https://git-codecommit.<region>.amazonaws.com/v1/repos/<repo> works successfully from inside the repo-server container using the configured helper

I also mounted the Git configuration at /etc/gitconfig (following your separate article about Git configuration and credential caching in ArgoCD), and verified that Git is correctly loading the credential helper configuration.

However, when ArgoCD itself tries to access the repository, it still fails with:

failed to list refs: authentication required:
<NotAuthorizedException>
<Message>SPNEGO token required</Message>
</NotAuthorizedException>

To troubleshoot this, I modified the credential helper command to write to a temporary log file whenever it is invoked. Manual Git operations trigger the helper as expected, but ArgoCD repository validation and application synchronization never invoke it.

This makes me suspect that either:

  1. ArgoCD is not using the system Git configuration for repository access in this scenario.
  2. Additional configuration is required but not documented in the article.
  3. The behavior depends on a specific ArgoCD version.

Could you clarify whether you have successfully validated the full end-to-end flow with ArgoCD actually syncing applications from CodeCommit using this method? If so, would you be able to share the missing configuration required to make ArgoCD invoke the credential helper?

Thanks for the article and for any additional details you can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions