Commit Graph

1098 Commits

Author SHA1 Message Date
Hidde Beydals 182ddbf837 sops/age: tidy and test keysource implementation
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals 2487b51e51 sops/keyservice: error on unfulfilled requirements
This ensures we signal early that we will be unable to fulfill the
request, instead of letting the underlying keysource implementation
run into mayhem. Which can be problematic for e.g. PGP, which has
assumptions about things being located relative to the given home
directory, resulting in possible unexpected behavior if an empty path
is given.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals 512e749219 sops/keyservice: handle nil key requests
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals e5c2730342 sops/keyservice: allow config of server via opts
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals 2e30a18b50 sops/keyservice: keep server fields private
This ensures data used for decryption is not exposed widely after
constructing the Server, and prevents a bypass to the default server
fallback.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals 7450a1a9a3 sops/keyservice: simplify switch logic
These bits of code have a history of accidents around the fallback
behavior. By simplifying it, the fallback should generally always work,
unless you put in instructions to take another route.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Hidde Beydals 31bfd5a057 sops/keyservice: remove prompt capabilities
The original keyservice implementation was forked from SOPS, keeping
the prompt capabilities intact. However, since the implementations have
started to grow, it is better to remove this capability and resort to
a hardcoded `false` default for the fallback server. As the controller
is never expected to have an interactive TTY/shell.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-04-04 23:57:46 +02:00
Stefan Prodan 97a451869b
Merge pull request #611 from pjbgf/documentation-v1beta2
Update KubeConfig documentation
2022-04-04 18:59:54 +03:00
Paulo Gomes d0069707e0
Update KubeConfig documentation
When the flag --default-service-account was added it changed
slightly the behaviour of the spec.KubeConfig field. It forces
the impersonation to always take place, either via the contents
of spec.ServiceAccountName or its fallback at controller level.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-04 16:20:19 +01:00
Daniel Holbach 033efe9fdd update toolkit.fluxcd.io docs link
Signed-off-by: Daniel Holbach <daniel@weave.works>
2022-04-01 12:03:44 +02:00
Stefan Prodan 3ebc24ed73
Merge pull request #608 from aryan9600/job-status
Implement health check for Kubernetes jobs
2022-04-01 12:57:59 +03:00
Sanskar Jaiswal ed5fb9fd6c add custom statusreader for jobs
Signed-off-by: Sanskar Jaiswal <sanskar.jaiswal@weave.works>
2022-04-01 15:11:13 +05:30
Stefan Prodan 55f14b7daf
Merge pull request #593 from pjbgf/new-kube-flag
Add kubeconfig flags
2022-04-01 12:38:31 +03:00
Paulo Gomes d29032e914
Add flags to control kubeconfig support
Two new flags were added to allow users to enable the
use of user.Exec and InsecureTLS in the kubeconfigs
provided remote apply reconciliations.

Breaking change: both functionalities are no longer
enabled by default.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-01 10:13:55 +01:00
Paulo Gomes 74a8258d26
Download SOPS when running tests
Some tests requires the sops CLI to be installed,
by adding it as a requirement of the Makefile tests
target we make it easier for new contributors to
engage with the codebase.

Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-01 10:11:27 +01:00
Paulo Gomes bce675b629
Align Makefile with other repositories
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-01 10:11:26 +01:00
Paulo Gomes 1ba95077df
Fix build tag syntax
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-04-01 10:11:25 +01:00
Stefan Prodan 412877ce55
Merge pull request #609 from fluxcd/example-typo
docs/spec/v1beta2: fix recommended settings typo
2022-04-01 09:33:06 +03:00
Sunny 1e616ed9e0
docs/spec/v1beta2: fix recommended settings typo
Signed-off-by: Sunny <darkowlzz@protonmail.com>
2022-04-01 08:22:11 +05:30
Hidde Beydals e5c845a056
Merge pull request #605 from fluxcd/release-v0.22.3 2022-03-29 17:00:15 +02:00
Hidde Beydals 9e34005a79 Release v0.22.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-29 16:36:52 +02:00
Hidde Beydals c58ae672ee
Merge pull request #606 from fluxcd/kustomize-4.5.4 2022-03-29 16:32:03 +02:00
Stefan Prodan b6cb225b9b
Update controller to kustomize v4.5.4
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-03-29 17:11:25 +03:00
Hidde Beydals 55b0f4f9d2
Merge pull request #604 from fluxcd/sops-azkv-compat 2022-03-29 13:44:30 +02:00
Hidde Beydals 692e4a726b sops/azkv: ensure compatibility with upstream
To please the older Azure SDK, the upstream SOPS implementation base64
URL encodes data before encryption, and decodes it afterwards. With the
new SDK, this has changed, requiring us to do the opposite to ensure
compatibility.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-29 13:22:53 +02:00
Hidde Beydals da09e21043 sops/azkv: test compatibility with upstream
Add integration tests to ensure compatibility between our own Azure
keyservice implementation and upstream.
Tests are enabled to only run for `main`.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-29 13:22:53 +02:00
Stefan Prodan 9ca247674f
Merge pull request #603 from fluxcd/docs-recommended-settings
Add recommended settings to API docs
2022-03-29 12:50:47 +03:00
Stefan Prodan 8770770c1f
Add recommended settings to API docs
Add example of deploying applications from Git to production environments.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-03-29 11:30:10 +03:00
Stefan Prodan c4f8b18a8b
Merge pull request #602 from ilanpillemer/align-deps-for-fuzzing
Align version of dependencies when Fuzzing
2022-03-29 10:19:51 +03:00
Ilan a6f536e5e0 align fuzzing deps as per task 3 flux2 issue 2552
Signed-off-by: Ilan <ilan.pillemer@gmail.com>
2022-03-28 11:28:03 +01:00
Sunny f689e4ea06
Merge pull request #599 from makkes/fix-changelog
docs: fix PR link in Changelog
2022-03-28 14:52:29 +05:30
Max Jonas Werner 7627650dad
docs: fix PR link in Changelog
Signed-off-by: Max Jonas Werner <mail@makk.es>
2022-03-28 10:26:33 +02:00
Hidde Beydals 4fd02f83ad
Merge pull request #598 from fluxcd/release-v0.22.2 2022-03-25 18:39:37 +01:00
Hidde Beydals a7cee3692b Release v0.22.2
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 18:23:59 +01:00
Hidde Beydals cf9b0fc0cb
Merge pull request #597 from fluxcd/fix-azkv-fallback 2022-03-25 18:17:47 +01:00
Hidde Beydals dc5486f8ab Bump version of source-controller CRDs
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 18:03:19 +01:00
Hidde Beydals e97ec3b5c8 build: configure --load for build via default
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 18:03:19 +01:00
Hidde Beydals 069a1065fc sops/keyservice: properly fallback to default
This solves a regression bug introduced in `v0.22.0`, which caused the
keyservice to not properly fall back to the default for Azure Key Vault
decryption requests.

A couple of nitpicks that I ran into while inspecting the code have
been adressed as well.

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 18:03:17 +01:00
Hidde Beydals ceb6a5d7c4
Merge pull request #596 from fluxcd/update-sc 2022-03-25 17:46:11 +01:00
Hidde Beydals 189c683d73 Update source-controller API to v0.22.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 16:58:06 +01:00
Hidde Beydals 5d8bcf98ae
Merge pull request #594 from fluxcd/update-kustomize 2022-03-25 13:59:34 +01:00
Hidde Beydals ae16621f60 Update Kustomize to v4.5.3
Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-25 11:02:34 +01:00
Stefan Prodan 43b04f7fa2
Merge pull request #592 from fluxcd/release-0.22.1
Release v0.22.1
2022-03-24 08:42:31 +02:00
Stefan Prodan ce0d631890
Release v0.22.1
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-03-24 08:23:40 +02:00
Stefan Prodan 59c8d7b173
Merge pull request #591 from fluxcd/event-annotations
Ensure annotations are prefixed with Group FQDN
2022-03-24 08:20:29 +02:00
Stefan Prodan 0787d8bbd6
Fix Kustomize version in go.mod comment
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2022-03-24 07:58:32 +02:00
Hidde Beydals db5777f06c Ensure annotations are prefixed with Group FQDN
This to facilitate improvements on the notification-controller side,
where annotations prefixed with the FQDN of the Group of the Involved
Object will be transformed into "fields".

Signed-off-by: Hidde Beydals <hello@hidde.co>
2022-03-23 22:30:31 +01:00
Hidde Beydals fd78fe55e5
Merge pull request #588 from pjbgf/sc-v1beta2-doc 2022-03-22 11:18:43 +01:00
Paulo Gomes b320df075a
Add note on new source-controller v1beta2
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
2022-03-22 09:59:37 +00:00
Stefan Prodan 318e27dc7d
Merge pull request #587 from fluxcd/changelog-fix
Add Azure Key Vault integration to changelog
2022-03-22 10:20:10 +02:00