-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from ibihim/secure-connection
validate options: check for secure connection for h2c and identity headers
- Loading branch information
Showing
40 changed files
with
1,118 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: kube-rbac-proxy | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: kube-rbac-proxy | ||
template: | ||
metadata: | ||
labels: | ||
app: kube-rbac-proxy | ||
spec: | ||
serviceAccountName: kube-rbac-proxy | ||
containers: | ||
- name: kube-rbac-proxy | ||
image: quay.io/brancz/kube-rbac-proxy:local | ||
args: | ||
- "--secure-port=8443" | ||
- "--upstream=http://http-echo-service.default.svc.cluster.local:80/" | ||
- "--authentication-skip-lookup" | ||
- "--upstream-force-h2c=true" | ||
- "--logtostderr=true" | ||
- "--v=10" | ||
ports: | ||
- containerPort: 8443 | ||
name: https | ||
- name: prometheus-example-app | ||
image: quay.io/brancz/prometheus-example-app:v0.4.0 | ||
args: | ||
- "--bind=127.0.0.1:8081" | ||
- "--h2c=true" | ||
|
36 changes: 36 additions & 0 deletions
36
test/e2e/h2c-upstream/deployment-upstream-non-loopback.yaml
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,36 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: http-echo | ||
labels: | ||
app: http-echo | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: http-echo | ||
template: | ||
metadata: | ||
labels: | ||
app: http-echo | ||
spec: | ||
containers: | ||
- name: http-echo | ||
image: mendhak/http-https-echo | ||
env: | ||
- name: HTTP_PORT | ||
value: 8080 | ||
ports: | ||
- containerPort: 8080 | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: http-echo-service | ||
spec: | ||
ports: | ||
- port: 80 | ||
targetPort: 8080 | ||
selector: | ||
app: http-echo | ||
|
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
Oops, something went wrong.