Skip to content

SOCKS proxy secret is no longer working #1915

@maboehm

Description

@maboehm

We just tried updating from v2.6.2 to v2.7.2 and got the following error in our GitRepositories:

  Warning  AuthenticationFailed   47s (x10 over 7m12s)  source-controller  failed to configure proxy options: secret 'flux-system/proxy-config-socks': proxy URL must use http or https scheme, got 'socks5'

This is the spec of the gitrepo:

spec:
  interval: 1m0s
  proxySecretRef:
    name: proxy-config-socks
  ref:
    branch: main
  secretRef:
    name: deploy-key-my-repo
  timeout: 60s
  url: ssh://git@github.com/org/my-repo.git

And the proxy-config-socks secret data looks roughly like this

stringData:
  address: socks5://100.10.3.25:1080
  password: secret
  username: user

I'm pretty sure the breaking change was introduced in this change fluxcd/pkg#1038 which was merged here in #1908

Using source-controller@v2.7.1 works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions