Skip to content
Snippets Groups Projects
Unverified Commit da9747a4 authored by Stefan Prodan's avatar Stefan Prodan Committed by GitHub
Browse files

Merge pull request #2951 from fluxcd/oci-oidc-auth

[RFC-0003] Add the provider field for OIDC auth
parents ea2de24a 36d219e0
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
**Creation date:** 2022-03-31
**Last update:** 2022-07-06
**Last update:** 2022-08-02
## Summary
......@@ -192,16 +192,17 @@ kubectl create secret generic regcert \
When Flux runs on AKS, EKS or GKE, an IAM role (that grants read-only access to ACR, ECR or GCR)
can be used to bind the `source-controller` to the IAM role.
Similar to image-reflector-controller
[auto-login feature](https://fluxcd.io/docs/guides/image-update/#imagerepository-cloud-providers-authentication),
source-controller will expose dedicated flags for each cloud provider:
```sh
--aws-autologin-for-ecr
--azure-autologin-for-acr
--gcp-autologin-for-gcr
```yaml
spec:
provider: aws
```
The provider accepts the following values: `generic`, `aws`, `azure` and `gcp`. When the provider is
not specified, it defaults to `generic`. When the provider is set to `aws`, `azure` or `gcp`, the
controller will use a specific cloud SDK for authentication purposes. If both `spec.secretRef` and
a non-generic provider are present in the definition, the controller will use the static credentials
from the referenced secret.
### Reconcile artifacts
The `OCIRepository` can be used as a drop-in replacement for `GitRepository` and `Bucket` sources.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment