Skip to content

OCIRepository: Configure proxy for OIDC auth#1607

Merged
stefanprodan merged 2 commits intomainfrom
oci-oidc-proxy
Sep 11, 2024
Merged

OCIRepository: Configure proxy for OIDC auth#1607
stefanprodan merged 2 commits intomainfrom
oci-oidc-proxy

Conversation

@stefanprodan
Copy link
Copy Markdown
Member

Followup: #1536

Xref: fluxcd/pkg#808

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
Copy link
Copy Markdown
Member

@matheuscscp matheuscscp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

}
} else if obj.Spec.Provider != sourcev1beta2.GenericOCIProvider && obj.Spec.Type == sourcev1.HelmRepositoryTypeOCI && ociRepo {
authenticator, authErr := soci.OIDCAuth(ctx, obj.Spec.URL, obj.Spec.Provider)
authenticator, authErr := soci.OIDCAuth(ctx, obj.Spec.URL, obj.Spec.Provider, nil)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume we pass nil here because we don't support proxy for HelmRepository, right? LGTM

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, HelmRepos only work with proxy env vars at container level.

Copy link
Copy Markdown
Contributor

@darkowlzz darkowlzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@stefanprodan stefanprodan merged commit dd144ac into main Sep 11, 2024
@stefanprodan stefanprodan deleted the oci-oidc-proxy branch September 11, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/oci OCI related issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants