Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4fb1849
Install Mesh Resources for multitenancy
mgencur Jun 19, 2023
7602a61
Update authorization policies
mgencur Jun 28, 2023
1fba1a8
Update teardown for Mesh
mgencur Jun 28, 2023
13541e5
Revert "Update authorization policies"
mgencur Jun 28, 2023
e926ac0
Test Kafka together with Mesh
mgencur Jun 28, 2023
01ad24f
Add more policies
mgencur Jun 28, 2023
4e4bac9
Remove some policies
mgencur Jun 28, 2023
f81a8ac
Add policies #1
mgencur Jun 28, 2023
530951e
Add policies - allow probe
mgencur Jun 28, 2023
e726fbe
Introduce default environment for eventinge2erekt tests
mgencur Jun 28, 2023
b955be3
Fix lint
mgencur Jun 28, 2023
2fb9589
Update readme for serving/metadata-webhook
mgencur Jun 28, 2023
e9f84c4
Add allow-serverless-tests-kafka-channel auth policy
mgencur Jun 28, 2023
4007b4f
Add deny-all-by-default policies
mgencur Jun 28, 2023
e455f4b
Allow traffic to autoscaler from activator
mgencur Jun 28, 2023
8fbd549
Use heml chart from pirDipi to generate policies
mgencur Jun 28, 2023
c110f25
Use auth policies from pierDipi's helm chart
mgencur Jun 29, 2023
e73888c
Update helm chart for serverless-tests
mgencur Jun 29, 2023
4646def
Add policies for serving-tests ns for upstream tests
mgencur Jun 29, 2023
a730da7
PeerAuthentication for serving-tests
mgencur Jun 29, 2023
c5b4e5a
Workaround for OSSM-1397
mgencur Jun 30, 2023
acae5fd
Place webhook installation back after Serverless installation
mgencur Jun 30, 2023
09098ef
Workaround for OSSM-1397
mgencur Jun 30, 2023
9800a2b
Fix readme for webhook
mgencur Jun 30, 2023
c4ddaf1
Allow traffic from knative-serving to istio-system
mgencur Jun 30, 2023
5665c67
Add peerauthentication for knative-serving
mgencur Jun 30, 2023
b9e7571
TMP: Try removing deny-all-by-defautl for Serving
mgencur Jun 30, 2023
a0b48d5
Remove allow-traffic-to-istio-system as it breaks all traffic for Ser…
mgencur Jun 30, 2023
65b4310
Put back deny-all-by-default for serving
mgencur Jun 30, 2023
21518a9
serving-tests-alt Workaround for OSSM-1397
mgencur Jul 3, 2023
37ee464
Update authorization policies for istio-system
mgencur Jul 3, 2023
ef2b937
Update mesh resources
ReToCode Jul 6, 2023
09dc983
Run tests with less parallel
ReToCode Jul 18, 2023
15d8ce7
Disable IOR to fix `TestBYOCertificate`
ReToCode Jul 18, 2023
6295576
Use `techPreview.meshConfig.defaultConfig.terminationDrainDuration` i…
ReToCode Jul 19, 2023
70e6ce3
Reduce parallelism only on mesh tests
ReToCode Jul 19, 2023
310f184
Use annotation to omit IOR OCP route creation
ReToCode Jul 19, 2023
85f9b57
Use specific labels for Knative gateways to omit conflict (SRVCOM-2356)
ReToCode Jul 20, 2023
183c353
Use updated resources from openshift-knative/knative-istio-authz-chart
ReToCode Jul 20, 2023
3b4317f
Cleanup
ReToCode Jul 21, 2023
c1ca959
Skip Long Response message test for now
pierDipi Jul 24, 2023
0abebad
Add all domain names to allowed hosts list
ReToCode Jul 25, 2023
f4e9ef0
Merge branch 'main' into multitenant_tests
pierDipi Jul 25, 2023
8ba63d0
Merge branch 'multitenant_tests' of github.com:pierDipi/serverless-op…
pierDipi Jul 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install-serving:
INSTALL_EVENTING="false" ./hack/install.sh

install-serving-with-mesh:
FULL_MESH="true" UNINSTALL_MESH="false" ./hack/mesh.sh
FULL_MESH=true SCALE_UP=4 INSTALL_SERVING=true INSTALL_EVENTING="false" ./hack/install.sh

install-eventing:
Expand Down Expand Up @@ -122,13 +123,14 @@ test-e2e-with-kafka:

# Run E2E tests from the current repo for serving+eventing+mesh
test-e2e-with-mesh-testonly:
FULL_MESH=true ./test/e2e-tests.sh
FULL_MESH=true TEST_KNATIVE_KAFKA=true ./test/e2e-tests.sh

test-e2e-with-mesh:
FULL_MESH="true" UNINSTALL_MESH="false" ./hack/mesh.sh
./hack/tracing.sh
FULL_MESH=true ENABLE_TRACING=true ./hack/install.sh
FULL_MESH=true ./test/e2e-tests.sh
UNINSTALL_STRIMZI="false" ./hack/strimzi.sh
FULL_MESH=true SCALE_UP=4 INSTALL_KAFKA="true" ENABLE_TRACING=true ./hack/install.sh
FULL_MESH=true TEST_KNATIVE_KAFKA=true ./test/e2e-tests.sh

# Run both unit and E2E tests from the current repo.
test-operator: test-unit test-e2e
Expand Down
11 changes: 9 additions & 2 deletions hack/lib/mesh.bash
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ function deploy_gateways {
oc apply -f "${resources_dir}"/namespace.yaml || return $?
oc apply -f "${resources_dir}"/smmr.yaml || return $?
oc apply -f "${resources_dir}"/gateway.yaml || return $?
oc apply -f "${resources_dir}"/peerauthentication.yaml || return $?
oc apply -f "${resources_dir}"/authorization-policies/setup || return $?
oc apply -f "${resources_dir}"/authorization-policies || return $?

oc create ns "${EVENTING_NAMESPACE}" --dry-run=client -oyaml | kubectl apply -f -
oc apply -n "${EVENTING_NAMESPACE}" -f "${resources_dir}"/kafka-service-entry.yaml || return $?
for ns in serverless-tests eventing-e2e0 eventing-e2e1 eventing-e2e2 eventing-e2e3 eventing-e2e4; do
oc apply -n "$ns" -f "${resources_dir}"/kafka-service-entry.yaml || return $?
Expand All @@ -128,6 +128,13 @@ function deploy_gateways {
}

function undeploy_gateways {
oc delete -n serverless-tests -f "${resources_dir}"/network-policy-monitoring.yaml --ignore-not-found || return $?
for ns in serverless-tests eventing-e2e0 eventing-e2e1 eventing-e2e2 eventing-e2e3 eventing-e2e4; do
oc delete -n "$ns" -f "${resources_dir}"/kafka-service-entry.yaml --ignore-not-found || return $?
done
oc delete authorizationpolicy allow-traffic-to-cluster-domain -n istio-system --ignore-not-found || return $?
oc delete -f "${resources_dir}"/authorization-policies --ignore-not-found || return $?
oc delete -f "${resources_dir}"/authorization-policies/setup --ignore-not-found || return $?
oc delete -f "${resources_dir}"/peerauthentication.yaml --ignore-not-found || return $?
oc delete -f "${resources_dir}"/gateway.yaml --ignore-not-found || return $?
oc delete -f "${resources_dir}"/smmr.yaml --ignore-not-found || return $?
Expand Down
12 changes: 12 additions & 0 deletions hack/lib/mesh_resources/authorization-policies/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
The resources in this folder are based on https://github.com/openshift-knative/knative-istio-authz-chart.
`setup` can be copied 1:1, the other ones are generated using the helm generator:

```bash
helm template oci://quay.io/pierdipi/knative-istio-authz-onboarding --version 0.1.0 --set "name=tenant-1" --set "namespaces={tenant-1}" > helm-tenant-1.yaml

helm template oci://quay.io/pierdipi/knative-istio-authz-onboarding --version 0.1.0 --set "name=tenant-2" --set "namespaces={tenant-2}" > helm-tenant-2.yaml

helm template oci://quay.io/pierdipi/knative-istio-authz-onboarding --version 0.1.0 --set "name=serving-tests" --set "namespaces={serving-tests}" > helm-serving-tests.yaml
```


Loading