Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow remote bases usage in Kustomize overlays #638

Merged
merged 1 commit into from
May 3, 2022

Conversation

stefanprodan
Copy link
Member

Add an optional flag for disabling Kustomize remote bases.

While the --no-remote-bases is set to false by default, Flux users are encouraged to enable it on production system for security and performance reasons. Using Kustomize remote bases means that kustomize-controller must clone the remote repositories on every reconciliation instead of using the source-controller artifacts cache. Allowing remote bases on multi-tenant clusters, means platform admins have no control over which repositories make up the desired state. When this flag is enabled, all resources must refer to local files included in the source artifact, meaning that only the Flux sources defined in Git can affect the cluster state.

@stefanprodan stefanprodan added enhancement New feature or request area/kustomize Kustomize related issues and pull requests labels Apr 27, 2022
Add an optional flag for disabling remote bases. While the `--no-remote-bases` is set to `false` by default, Flux users are encouraged to enable it on production system for security and performance reasons. Using Kustomize remote bases means that kustomize-controller must clone the remote repositories on every reconciliation instead of using the source-controller artifacts cache. Allowing remote bases on multi-tenant clusters, means platform admins have no control over which repositories make up the desired state.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan added this to the GA milestone Apr 27, 2022
main.go Show resolved Hide resolved
Copy link
Member

@pjbgf pjbgf 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 ba03c87 into main May 3, 2022
@stefanprodan stefanprodan deleted the no-remote-bases branch May 3, 2022 08:35
takirala added a commit to mesosphere/kommander-applications that referenced this pull request Jun 2, 2022
kustomize-controller 0.25.0+ introduced a flag to support remote
kustomization overlays by default. We don't use remote bases for
kustomizations (yet!) so we can safely disable it (as per recommendation
upstream).

See fluxcd/kustomize-controller#638

Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>
takirala added a commit to mesosphere/kommander-applications that referenced this pull request Jun 8, 2022
kustomize-controller 0.25.0+ introduced a flag to support remote
kustomization overlays by default. We don't use remote bases for
kustomizations (yet!) so we can safely disable it (as per recommendation
upstream).

See fluxcd/kustomize-controller#638

Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>
takirala added a commit to mesosphere/kommander-applications that referenced this pull request Jun 9, 2022
* feat: disable remote bases in kustomize overlays

kustomize-controller 0.25.0+ introduced a flag to support remote
kustomization overlays by default. We don't use remote bases for
kustomizations (yet!) so we can safely disable it (as per recommendation
upstream).

See fluxcd/kustomize-controller#638

Signed-off-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>

* feat: Upgrade flux to 0.31.0

Co-authored-by: Tarun Gupta Akirala <takirala@users.noreply.github.com>
Co-authored-by: CI <ci@mesosphere.com>
@stefanprodan stefanprodan modified the milestones: GA, Bootstrap GA Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kustomize Kustomize related issues and pull requests enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants