Commit Graph
436 Commits
Author SHA1 Message Date
kfox1111andMarco Franssen ec236e9762 Test for configurable images (#182)
Co-authored-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
2023-04-03 19:50:06 +02:00
kfox1111andMarco Franssen 280315ca68 Fix namespace-override github test summary (#154)
Co-authored-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
2023-04-03 19:37:19 +02:00
kfox1111andMarco Franssen 072d952d9a Switch tests to curl (#178)
Co-authored-by: Marco Franssen <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
2023-04-03 19:32:18 +02:00
Marco Franssen 1b4bfb779e Cleanup old leftover to k8s-workload-registrar
Signed-off-by: Marco Franssen <[email protected]>
2023-04-03 15:44:36 +02:00
Marco Franssen a7709287bf Switch busybox image to cgr.dev/chainguard/busybox:latest-glibc (#175) 2023-04-03 05:33:30 -07:00
kfox1111 87904164ad Enable global config for clusterName, trustDomain, and bundleConfigMap (#156) 2023-04-02 19:28:49 +02:00
Marco Franssen b54c41aee0 Enhance the production example
Signed-off-by: Marco Franssen <[email protected]>
2023-03-31 15:48:40 +02:00
Marco Franssen dfb32dc28f Revert adding tornjak to be releasable (#180) 2023-03-31 10:11:54 +02:00
Marco Franssen 059d5fb89f Bump spire Helm Chart version from 0.5.0 to 0.5.1
* 64585ba Fix formatting issues introduced with #152
* 0dac0db Improve Spire Chart documentation
* f709ed9 Bump actions/checkout from 3.4.0 to 3.5.0
* faef439 Bump helm/chart-testing-action from 2.3.1 to 2.4.0
* ae62dd1 Bump spire version to 1.6.1
* 02fda80 Add Artifact Hub badge to README.md
* 901e670 Disable default Tornjak deployment (#153)
* 05d0f47 Introduction of Tornjak to SPIRE Server helm charts (#144)
* b25dc77 Test fixing the tests (#148)
* b4be9ed Add maturity tag (#138)
* d4fd2ce Extract the namespace override test out of the old lockdown test. (#145)
* 4f85802 Update lockdown test to test the production example
* 04a1305 Fork the lockdown test to two tests as it is doing the work of 2 (#134)
* 64d0107 Resolve issue in prod example on volume mount (#143)
* 5b6708b Remove @dennisgove from CODEOWNERS (#140)
* a516caa Remove k8s 1.21 from test matrix + small syntax error fix (#133)
* 811a2f6 Add option to enable federation on spire-server (#97)

Signed-off-by: Marco Franssen <[email protected]>
2023-03-28 14:57:48 +02:00
kfox1111andMarco Franssen e2ec6ac47d Add a test to ensure the chart versions match (#163)
Co-authored-by: Marco Franssen <[email protected]>
2023-03-28 10:21:24 +02:00
Marco Franssen 64585ba2b5 Fix formatting issues introduced with #152
Signed-off-by: Marco Franssen <[email protected]>
2023-03-27 17:56:47 +02:00
Marco Franssen 0dac0dbd95 Improve Spire Chart documentation
Signed-off-by: Marco Franssen <[email protected]>
2023-03-27 17:41:35 +02:00
dependabot[bot] f709ed9705 Bump actions/checkout from 3.4.0 to 3.5.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-03-27 09:55:36 +02:00
dependabot[bot] faef4391a6 Bump helm/chart-testing-action from 2.3.1 to 2.4.0
Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/helm/chart-testing-action/releases)
- [Commits](https://github.com/helm/chart-testing-action/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: helm/chart-testing-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
2023-03-27 08:53:01 +02:00
Marco Franssen ae62dd1af7 Bump spire version to 1.6.1
Signed-off-by: Marco Franssen <[email protected]>
2023-03-25 00:40:24 +01:00
Marco Franssen 02fda80cf3 Add Artifact Hub badge to README.md
Signed-off-by: Marco Franssen <[email protected]>
2023-03-25 00:26:01 +01:00
Mariusz Sabath 901e670d49 Disable default Tornjak deployment (#153) 2023-03-22 12:16:38 -07:00
05d0f4778d Introduction of Tornjak to SPIRE Server helm charts (#144)
This PR introduces a simplified version of
[Tornjak](https://github.com/spiffe/tornjak) to support UI and SPIRE
control plane.

It extends the `/charts/spire-server` sub-chart by injecting *tornjak*
container to the *spire-server* pod. Tornjak image consists of Tornjak
API (Tornjak Backend), Tornjak UI (Frontend), and database for storing
Tornjak specific information.

Tornjak Backend communicates with SPIRE API via SPIRE Server socket. 

Since Tornjak UI (Frontend) is a React code that renders in a browser,
it needs to communicate with Tornjak APIs, and that requires
communication ports to be open, either via Ingress (in Cloud deployment)
or via port forwarding in local deployments (e.g. kind, minikube etc).
Typically port 10000 is used for HTTP connection to Backend, and port
3000 for the HTTP connection to Frontend.

End user management, TLS, and mTLS connections will be addressed by
future PRs.

This PR resolves issue #31

---------

Signed-off-by: Mariusz Sabath <[email protected]>
Signed-off-by: Marco Franssen <[email protected]>
Co-authored-by: Kevin Fox <[email protected]>
Co-authored-by: Marco Franssen <[email protected]>
Co-authored-by: Pete Cable <[email protected]>
Co-authored-by: Dennis Gove <[email protected]>
2023-03-22 13:09:09 -04:00
kfox1111andMarco Franssen b25dc773bc Test fixing the tests (#148)
Co-authored-by: Marco Franssen <[email protected]>
2023-03-22 09:49:33 +01:00
Faisal Memon b4be9edfeb Add maturity tag (#138) 2023-03-22 09:28:31 +01:00
kfox1111 d4fd2ced39 Extract the namespace override test out of the old lockdown test. (#145)
This patch removes the production bits of the old lockdown test
and establishes the namespace override test as its own test.

---------

Signed-off-by: Kevin Fox <[email protected]>
2023-03-21 22:13:26 +01:00
Marco Franssen 4f85802ae0 Update lockdown test to test the production example
Signed-off-by: Marco Franssen <[email protected]>
2023-03-21 21:55:20 +01:00
kfox1111 04a1305556 Fork the lockdown test to two tests as it is doing the work of 2 (#134)
This patch makes a second copy of the existing lockdown test
because it is doing double duty. In follow on patches we will
make each test do one thing only.

Signed-off-by: Kevin Fox <[email protected]>
2023-03-21 10:14:38 -07:00
Marco Franssen 64d010757c Resolve issue in prod example on volume mount (#143) 2023-03-21 04:39:59 -07:00
Dennis Gove 5b6708bb57 Remove @dennisgove from CODEOWNERS (#140) 2023-03-18 15:12:44 -07:00
Marco Franssen a516caa8a6 Remove k8s 1.21 from test matrix + small syntax error fix (#133)
- Remove k8s 1.21 from test matrix
- Fix syntax
- Improve readability test step

Officialy according to readme we support last three k8s versions.
Testing last 5 versions should be sufficient.

---------

Signed-off-by: Marco Franssen <[email protected]>
2023-03-17 14:37:31 -07:00
Pete Cable 811a2f6b01 Add option to enable federation on spire-server (#97) 2023-03-16 20:36:13 +01:00
Marco Franssen 382c1f4334 Bump spire Helm Chart version from 0.4.0 to 0.5.0
* fae12af Merge pull request #60 from spiffe/oidc-ingress
* 6322a9a Fix tests
* a9b99fe Add some commented lines for best practice annotations on ingress
* e970d52 Align ingress hostname with jwtIssues in spire-server chart
* cc7121e Add ingress support for OIDC discovery provider
* eaed7c9 Bump actions/checkout from 3.3.0 to 3.4.0 (#129)
* 2e3f045 Make webhook fail policy configurable (#124)
* 9ccbd3c Make kubelet path configurable (#123)
* 80e3b58 Remove dead file from failed rebase. (#121)
* 7155d71 Add documentation how to use Spire in own workloads
* 25c77fc Fix the driver not coming up on overloaded nodes
* 5fdd35b Improve Chart API (#119)
* 03db6bb Namespace override
* 661000a Make the agent socket configurable (#114)
* f3a81ad Make csi driver configurable to be able to run multiple instances (#115)
* b198bc7 Fix the tests so they can run locked down. (#111)
* 09b21ac Fix the gate
* b6716ae Test that it is possible to lock down security of pods (#84)
* bfeb217 Fix cluster role name uniqueness
* 490fe8f Enhance the test workflow scripts
* 9e22d2c Make the namespace the bundle is dropped into configurable
* 7d1f821 Fix test.
* 493ad8f Remove some duplication on chart-testing CI
* b6dd136 Add tmp mount so that server can run locked down (#105)
* aaaf2f7 Remove dead role code
* d2eba22 Fix docs
* 6d43625 Add kfox as a maintainer
* dfa4e6c Ensure CI also runs when test scripts are changed

Signed-off-by: Marco Franssen <[email protected]>
2023-03-16 19:15:39 +01:00
Marco Franssen fae12afefa Merge pull request #60 from spiffe/oidc-ingress 2023-03-16 18:59:37 +01:00
Kevin FoxandMarco Franssen 6322a9a138 Fix tests
Signed-off-by: Kevin Fox <[email protected]>

Co-authored-by: Marco Franssen <[email protected]>
2023-03-16 18:58:31 +01:00
Marco Franssen a9b99febb3 Add some commented lines for best practice annotations on ingress
Signed-off-by: Marco Franssen <[email protected]>
2023-03-16 10:08:00 +01:00
Marco Franssen e970d52ea4 Align ingress hostname with jwtIssues in spire-server chart
Signed-off-by: Marco Franssen <[email protected]>
2023-03-16 10:05:33 +01:00
Kevin FoxandMarco Franssen cc7121e021 Add ingress support for OIDC discovery provider
This patch enables exposing the oidc server out with an ingress
along with tests to ensure it works.

Signed-off-by: Kevin Fox <[email protected]>

Co-authored-by: Marco Franssen <[email protected]>
2023-03-16 10:02:22 +01:00
dependabot[bot] eaed7c9b60 Bump actions/checkout from 3.3.0 to 3.4.0 (#129)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-16 09:36:54 +01:00
kfox1111 2e3f045826 Make webhook fail policy configurable (#124)
This patch makes the webhook fail policy configurable.

---------

Signed-off-by: Kevin Fox <[email protected]>
2023-03-15 12:55:07 -07:00
kfox1111 9ccbd3c67f Make kubelet path configurable (#123) 2023-03-15 10:25:06 +01:00
kfox1111 80e3b58dcd Remove dead file from failed rebase. (#121)
Signed-off-by: Kevin Fox <[email protected]>
2023-03-14 13:23:02 -07:00
Marco Franssen 7155d71c38 Add documentation how to use Spire in own workloads
Signed-off-by: Marco Franssen <[email protected]>
2023-03-14 20:18:19 +01:00
Kevin Fox 25c77fc0cb Fix the driver not coming up on overloaded nodes
Add to the reference production example a fix for overloaded nodes.

fixes: https://github.com/spiffe/helm-charts/issues/80

Signed-off-by: Kevin Fox <[email protected]>
2023-03-14 20:10:51 +01:00
Marco Franssen 5fdd35b426 Improve Chart API (#119)
Because we are already in the context of spire-agent the API looks more
logical to not have another 'agent' part in the name.

Furthermore to make it more clear the oidc provider only requires the
name of the socket as opposed to the entire path like in the other
charts I made that more explicit in the name of the value.

---------

Signed-off-by: Marco Franssen <[email protected]>
2023-03-14 09:55:24 -07:00
kfox1111 03db6bb5fe Namespace override
This patch makes it possible to install the subcharts in different
namespaces as needed.

Signed-off-by: Kevin Fox <[email protected]>
2023-03-13 15:03:16 -07:00
kfox1111 661000a29a Make the agent socket configurable (#114) 2023-03-13 20:35:27 +01:00
kfox1111andMarco Franssen f3a81ad78d Make csi driver configurable to be able to run multiple instances (#115)
Co-authored-by: Marco Franssen <[email protected]>
2023-03-13 14:12:37 +01:00
kfox1111 b198bc7e39 Fix the tests so they can run locked down. (#111) 2023-03-11 22:10:14 +01:00
Kevin Fox 09b21acca2 Fix the gate
Signed-off-by: Kevin Fox <[email protected]>
2023-03-11 19:21:59 +01:00
kfox1111 b6716aee17 Test that it is possible to lock down security of pods (#84) 2023-03-11 12:11:19 +01:00
Kevin Fox bfeb217558 Fix cluster role name uniqueness
Adds namespace to the ClusterRole and ClusterRoleBinding so that it
doesn't conflict when you have two instances of the chart, in different
namespaces with the same release name.

Signed-off-by: Kevin Fox <[email protected]>
2023-03-10 15:45:49 +01:00
Kevin Fox 490fe8f543 Enhance the test workflow scripts
This makes it so that tests can now:
1. Add additional values files to the test
2. That the post-install.sh script knows if the test passed or failed
   for better output
3. That the main test can be skipped in favor of a test provided one

Signed-off-by: Kevin Fox <[email protected]>
2023-03-10 08:46:27 +01:00
Kevin Fox 9e22d2c303 Make the namespace the bundle is dropped into configurable
When the server and agent are not in the same namespace, the bundle needs to be
uploadable in the agent's namespace.

Signed-off-by: Kevin Fox <[email protected]>
2023-03-09 12:00:41 -08:00
Kevin Fox 7d1f8217ce Fix test.
Signed-off-by: Kevin Fox <[email protected]>
2023-03-09 10:09:50 -08:00