forked from knative/eventing
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v1.11] Trust manager integration (#493)
* Label OpenShift CA trust bundle as Knative trust bundle Signed-off-by: Pierangelo Di Pilato <[email protected]> * Trust-manager integration (knative#7532) * Trust-manager integration Signed-off-by: Pierangelo Di Pilato <[email protected]> * Add E2E tests Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix linter and format Go code Signed-off-by: Pierangelo Di Pilato <[email protected]> * Upgrade rekt Signed-off-by: Pierangelo Di Pilato <[email protected]> * Reference Eventing CA issuer in E2E tests Signed-off-by: Pierangelo Di Pilato <[email protected]> * Force GVK in sources when propagating trust bundle Signed-off-by: Pierangelo Di Pilato <[email protected]> * Format Go code Signed-off-by: Pierangelo Di Pilato <[email protected]> * SinkBinding reconciler needs to create/update/delete trust bundle configmaps Signed-off-by: Pierangelo Di Pilato <[email protected]> * Upgrade rekt deps Signed-off-by: Pierangelo Di Pilato <[email protected]> * Add Deployment volumes for SinkBinding tests Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix CA certs bundle and https endpoint assertions Signed-off-by: Pierangelo Di Pilato <[email protected]> * Pass TrustBundleConfigMapLister in PingSource runner Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix adapter create informer logic for trust bundle ConfigMaps Signed-off-by: Pierangelo Di Pilato <[email protected]> * Remove propagate configmaps in ContainerSource reconciler as is done in SB reconciler Signed-off-by: Pierangelo Di Pilato <[email protected]> * Inject trust bundles as volumes in sinkbinding reconciler Signed-off-by: Pierangelo Di Pilato <[email protected]> * Inject trust-bundle to SinkBinding subjects Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix lister ctx injection Signed-off-by: Pierangelo Di Pilato <[email protected]> --------- Signed-off-by: Pierangelo Di Pilato <[email protected]> * Reload trust-bundle on new connections (knative#7567) This allows administrators to dynamically add trust-bundles that are picked by clients when connecting to new hosts. Signed-off-by: Pierangelo Di Pilato <[email protected]> * Actually run TLS tests Signed-off-by: Pierangelo Di Pilato <[email protected]> * Run generate-release Signed-off-by: Pierangelo Di Pilato <[email protected]> * Create trust bundle ConfigMap manually Signed-off-by: Pierangelo Di Pilato <[email protected]> * Assign global resync Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix regex Signed-off-by: Pierangelo Di Pilato <[email protected]> * User-provided issuers and CA certificate Signed-off-by: Pierangelo Di Pilato <[email protected]> * Fix configmap -> secret Signed-off-by: Pierangelo Di Pilato <[email protected]> * Label bundle configmap Signed-off-by: Pierangelo Di Pilato <[email protected]> * Base64 decode CA certs Signed-off-by: Pierangelo Di Pilato <[email protected]> * Remove install script Signed-off-by: Pierangelo Di Pilato <[email protected]> * Use projected volumes Signed-off-by: Pierangelo Di Pilato <[email protected]> * Create bundle on install_serverless so it's always done Signed-off-by: Pierangelo Di Pilato <[email protected]> --------- Signed-off-by: Pierangelo Di Pilato <[email protected]>
- Loading branch information
Showing
86 changed files
with
4,866 additions
and
7,670 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,9 @@ rules: | |
resources: | ||
- "configmaps" | ||
verbs: | ||
- "create" | ||
- "update" | ||
- "delete" | ||
- "get" | ||
- "list" | ||
- "watch" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2024 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: knative-eventing-bundle | ||
namespace: knative-eventing | ||
labels: | ||
networking.knative.dev/trust-bundle: "true" | ||
app.kubernetes.io/version: devel | ||
app.kubernetes.io/name: knative-eventing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright 2024 The Knative Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: trust.cert-manager.io/v1alpha1 | ||
kind: Bundle | ||
metadata: | ||
name: knative-eventing-bundle # The bundle name will also be used for the target | ||
spec: | ||
sources: | ||
# Include a bundle of publicly trusted certificates which can be | ||
# used to validate most TLS certificates on the internet, such as | ||
# those issued by Let's Encrypt, Google, Amazon and others. | ||
- useDefaultCAs: true | ||
|
||
# A Secret in the "trust" namespace; see "Trust Namespace" below for further details | ||
- secret: | ||
name: "knative-eventing-ca" | ||
key: "tls.crt" | ||
|
||
target: | ||
|
||
configMap: | ||
key: "knative-eventing-bundle.pem" | ||
additionalFormats: | ||
jks: | ||
key: "knative-eventing-bundle.jks" | ||
pkcs12: | ||
key: "knative-eventing-bundle.p12" | ||
|
||
namespaceSelector: | ||
matchLabels: | ||
kubernetes.io/metadata.name: "knative-eventing" |
Oops, something went wrong.