Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use static file server instead of github.com #4715

Merged
merged 6 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions examples/static-file-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM golang:1.23.3 AS builder

ARG GO_LDFLAGS=""

WORKDIR /workspace
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod \
go mod download

COPY . ./
RUN --mount=type=cache,target=/root/.cache/go-build --mount=type=cache,target=/go/pkg/mod \
CGO_ENABLED=0 \
GOOS=${TARGETOS} \
GOARCH=${TARGETARCH} \
go build -o /bin/static-file-server -ldflags "${GO_LDFLAGS}" .

# Need root user for UDS
FROM gcr.io/distroless/static-debian11
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /bin/static-file-server /
COPY files/ files/

ENTRYPOINT ["/static-file-server"]
8 changes: 8 additions & 0 deletions examples/static-file-server/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

IMAGE_PREFIX ?= envoyproxy/gateway-
APP_NAME ?= static-file-server
TAG ?= latest

.PHONY: docker-buildx
docker-buildx:
docker buildx build . -t $(IMAGE_PREFIX)$(APP_NAME):$(TAG) --build-arg GO_LDFLAGS="$(GO_LDFLAGS)" --load
10 changes: 10 additions & 0 deletions examples/static-file-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Static File Server

This example demonstrates how to create a simple static file server using the `http` package.
Which serves files used by e2e tests.

- test/e2e/testdata/authorization-jwt.yaml
- test/e2e/testdata/jwt.yaml
- test/e2e/testdata/jwt-optional.yaml
- test/e2e/testdata/ratelimit-based-jwt-claims.yaml
- test/e2e/testdata/wasm-http.yaml
22 changes: 22 additions & 0 deletions examples/static-file-server/files/jwt/jwks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"keys": [
{
"kty": "RSA",
"n": "u1SU1LfVLPHCozMxH2Mo4lgOEePzNm0tRgeLezV6ffAt0gunVTLw7onLRnrq0_IzW7yWR7QkrmBL7jTKEn5u-qKhbwKfBstIs-bMY2Zkp18gnTxKLxoS2tFczGkPLPgizskuemMghRniWaoLcyehkd3qqGElvW_VDL5AaWTg0nLVkjRo9z-40RQzuVaE8AkAFmxZzow3x-VJYKdjykkJ0iT9wCS0DRTXu269V264Vf_3jvredZiKRkgwlL9xNAwxXFg0x_XFw005UWVRIkdgcKWTjpBP2dPwVZ4WWC-9aGVd-Gyn1o0CLelf4rEjGoXbAAEgAqeGUxrcIlbjXfbcmw",
"e": "AQAB",
"alg": "RS256",
"use": "sig"
},
{
"alg": "RS256",
"e": "AQAB",
"key_ops": [
"verify"
],
"kty": "RSA",
"n": "xOHb-i1WDfeAvsbXTSOtosl3hCUDHQ8fRDqX_Rt998-hZDJmAoPOu4J-wcwq5aZtSn_iWUYLcK2WmC_1n-p1eyc-Pl4CBnxF7LUjCk-WGhniaCzXC5I5RON6c5N-MdE0UfukK0PM0zD3iQonZq0fIsnOYyFdYdWvQ5XW-C2aLlq2FUKrjmhAav10jIC0KGd2dHRzauzfLMUmt_iMnpU84Xrur1zRYzBO4D90rN0ypC2HH7o_zI8Osx4o1L8BScW78545sWyVbaprhBV1I2Sa4SH3NAc25ej3RIh-f13Yu97FVfO0AIG4VfFiaMmsTqNTCiBkM20tXD2Z-cHJTKemXzFgInJoqFLAkHLzJ0lPvAkKOgAOufLHa7RA-C276OXd72IXPsL1UOLN4sjhGqTtaynVa00yuHdi3f4-aoy9F9SUJeWfPg--nZNLzuI0eyufsTFywnx1bTQ_kdYlEr0dRE5sujlMk3cZ7FmOQRvcjA9MxFzoVKMmlZc6LMCgqw-P",
"use": "sig",
"kid": "b520b3c2c4bd75a10e9cebc9576933dc"
}
]
}
Binary file not shown.
3 changes: 3 additions & 0 deletions examples/static-file-server/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/envoyproxy/static-file-server

go 1.23.3
Empty file.
39 changes: 39 additions & 0 deletions examples/static-file-server/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Copyright Envoy Gateway Authors
// SPDX-License-Identifier: Apache-2.0
// The full text of the Apache license is available in the LICENSE file at
// the root of the repo.

package main

import (
"flag"
"log"
"net/http"
"os"
"path"
)

var (
port string
directory string
certPath string
)

func main() {
flag.StringVar(&port, "port", "8080", "port to serve on")
flag.StringVar(&directory, "dir", "./files", "the directory of static file to host")
flag.StringVar(&certPath, "certPath", "/etc/certs", "path to extProcServer certificate and private key")
flag.Parse()

http.Handle("/", http.FileServer(http.Dir(directory)))

if _, err := os.Stat(path.Join(certPath, "tls.crt")); err != nil {
log.Printf("Serving %s on HTTP port: %s\n", directory, port)
log.Fatal(http.ListenAndServe(":"+port, nil))
return
}

log.Printf("Serving %s on HTTPS port: %s\n", directory, port)
log.Fatal(http.ListenAndServeTLS(":"+port,
path.Join(certPath, "tls.crt"), path.Join(certPath, "tls.key"), nil))
}
33 changes: 33 additions & 0 deletions examples/static-file-server/manifests/http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
apiVersion: v1
kind: Service
metadata:
name: static-file-server
spec:
selector:
app: static-file-server
ports:
- protocol: TCP
port: 443
targetPort: 8443
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-file-server
labels:
app: static-file-server
spec:
replicas: 1
selector:
matchLabels:
app: static-file-server
template:
metadata:
labels:
app: static-file-server
spec:
containers:
- name: static-file-server
image: envoyproxy/gateway-static-file-server
imagePullPolicy: IfNotPresent
22 changes: 22 additions & 0 deletions examples/static-file-server/manifests/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: backend
spec:
parentRefs:
- name: eg
rules:
- backendRefs:
- group: ""
kind: Service
name: static-file-server
port: 443
weight: 1
matches:
- path:
type: PathPrefix
value: /jwt
- path:
type: PathPrefix
value: /wasm
---
95 changes: 95 additions & 0 deletions examples/static-file-server/manifests/tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
apiVersion: v1
data:
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURZVENDQWttZ0F3SUJBZ0lSQUpiK2x5QTJqZCtlUmRMTzR4Sm5kWVF3RFFZSktvWklodmNOQVFFTEJRQXcKUWpFVE1CRUdBMVVFQ2hNS1JXNTJiM2xRY205NGVURVFNQTRHQTFVRUN4TUhSMkYwWlhkaGVURVpNQmNHQTFVRQpBeE1RUlc1MmIza2dSMkYwWlhkaGVTQkRRVEFnRncweU5EQXpNVEF4TlRNeU1UZGFHQTh5TVRJME1ETXhNREUyCk16SXhOMW93SkRFUU1BNEdBMVVFQ2hNSFFXTnRaU0JEYnpFUU1BNEdBMVVFQXhNSFpHVm1ZWFZzZERDQ0FTSXcKRFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCQUtGUnI2cVV1WFN1N3J5bHcvVmZXbm1kM0RXWgpTcGxDUFR6QUh1V3NpOVVrbW5rTVhNOXN3Y1VQZFUyd2NNSHd1bDNpNGJwTlRkUGVWRG04K3JUVXNmaHMySWZuCmhHNW9WV0JnTkJXVEYzRnpiUmgvc3orK3p6MlBnZ0Fpb3NjYmEyVm5qaExyOUM3a0Q3QnRYNVlvSENGQ3lhT24Kem9WNVdNSnBBNHNCeGdOdkpXSU5aRUNnOUlmSWxSMDZMTGlNTXJCRTVRS2cvTG5EUkpuTEZEVFZCTDdzallpVQpZdVZtRWczMXJaOVpsNXViZ09xSU9uU2ROM2RNM1hhU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: v1
kind: Service
metadata:
name: static-file-server
spec:
selector:
app: static-file-server
ports:
- protocol: TCP
port: 443
targetPort: 8443
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-file-server
labels:
app: static-file-server
spec:
replicas: 1
selector:
matchLabels:
app: static-file-server
template:
metadata:
labels:
app: static-file-server
spec:
containers:
- name: static-file-server
image: envoyproxy/gateway-static-file-server
imagePullPolicy: IfNotPresent
args:
- "--certPath=/app/certs"
- "--port=8443"
volumeMounts:
- name: secret-volume
mountPath: /app/certs
volumes:
- name: secret-volume
secret:
secretName: static-file-server-tls
---
apiVersion: gateway.networking.k8s.io/v1alpha3
kind: BackendTLSPolicy
metadata:
name: static-file-server
spec:
targetRefs:
- group: ""
kind: Service
name: static-file-server
sectionName: "443"
validation:
caCertificateRefs:
- name: backend-tls-checks-certificate
group: ""
kind: ConfigMap
hostname: example.com
---
apiVersion: v1
data:
ca.crt: |
-----BEGIN CERTIFICATE-----
MIIDQzCCAiugAwIBAgIBATANBgkqhkiG9w0BAQsFADBCMRMwEQYDVQQKEwpFbnZv
eVByb3h5MRAwDgYDVQQLEwdHYXRld2F5MRkwFwYDVQQDExBFbnZveSBHYXRld2F5
IENBMCAXDTI0MDMxMDE1MzIxN1oYDzIxMjQwMzEwMTYzMjE3WjBCMRMwEQYDVQQK
EwpFbnZveVByb3h5MRAwDgYDVQQLEwdHYXRld2F5MRkwFwYDVQQDExBFbnZveSBH
YXRld2F5IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA7ZFmGB4e
m1KdGEohAZBfqydAEGLDHJ1YyfHWdd+vBAevdW64bZx3pggJOtgCnePuFd02rDQS
dlsJlX/6mFtoQilo6wvxDSJRfaTDbtfTjw+7k8yfd/Jsmh0RWG+UeyI7Na9sXAz7
b57mpxsCoNowzeK5ETiOGGNWPcjENJkSnBarz5muN00xIZWBU+yN5PLJNxZvxpZJ
Ol/SSI8sno0e0PxAmp3fe7QaXiZj/TAGJPGuTJkUxrHqyZGJtYUxsS8A0dT1zBjj
izA5Dp+b5yzYo23Hh7BgpbZ7X4gsDThFuwCD6fHyepuv2zHPqvSsdqg2hAhDp91R
zrn7a9GxG2VSIwIDAQABo0IwQDAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw
AwEB/zAdBgNVHQ4EFgQUUpP1aZ1M2KIuPPWrNPDV2c5CngowDQYJKoZIhvcNAQEL
BQADggEBAGSEkAVz+Z0qS4FmA0q4SCpIIq64bsdEjiUzev7pK1LEK0/Y28QBPixV
cUXfax18VPR9pls1JgXto9qY+C0hnRZic6611QTJlWK1p6dinQ/eDdYCBC+nv5xx
ssASwmplIxMvj3S1qF6dr7sMI2ZVD5HElTWdO19UBLyhiKKZW2KxDsYj+5NRwGFe
G+JuDgq7njUM8mdyYk0NehefdBUEUUCQtnwUtW95/429XwqQROuRDteGT9kjD+Y5
ea5mW4mfqLeuGJXZs9bdWjKKdLQPrn9IshPysWqz2Hz8dQ1f7N9/g8UWVSjd4cyx
S5EAolzVv0yB7wHCWCgfG/ckdOTUNnE=
-----END CERTIFICATE-----
kind: ConfigMap
metadata:
name: backend-tls-checks-certificate
35 changes: 35 additions & 0 deletions test/e2e/base/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -567,3 +567,38 @@ spec:
protocol: TCP
port: 19001
targetPort: 19001
---
apiVersion: v1
kind: Service
metadata:
name: static-file-server
namespace: gateway-conformance-infra
spec:
selector:
app: static-file-server
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: static-file-server
namespace: gateway-conformance-infra
labels:
app: static-file-server
spec:
replicas: 1
selector:
matchLabels:
app: static-file-server
template:
metadata:
labels:
app: static-file-server
spec:
containers:
- name: static-file-server
image: envoyproxy/gateway-static-file-server
imagePullPolicy: IfNotPresent
6 changes: 3 additions & 3 deletions test/e2e/testdata/authorization-jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
- name: example
issuer: https://foo.bar.com
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/refs/heads/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
authorization:
defaultAction: Deny
rules:
Expand Down Expand Up @@ -97,7 +97,7 @@ spec:
- name: example
issuer: https://foo.bar.com
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/refs/heads/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
authorization:
defaultAction: Deny
rules:
Expand All @@ -123,7 +123,7 @@ spec:
- name: example
issuer: https://foo.bar.com
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/refs/heads/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
authorization:
defaultAction: Deny
rules:
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testdata/jwt-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
- claim: name
header: x-name
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
optional: true
---
apiVersion: gateway.networking.k8s.io/v1
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testdata/jwt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
- claim: name
header: x-name
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/testdata/ratelimit-based-jwt-claims.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
providers:
- name: example
remoteJWKS:
uri: https://raw.githubusercontent.com/envoyproxy/gateway/main/examples/kubernetes/jwt/jwks.json
uri: http://static-file-server.gateway-conformance-infra/jwt/jwks.json
claimToHeaders:
- claim: name
header: x-claim-name
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/testdata/wasm-http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
code:
type: HTTP
http:
url: https://raw.githubusercontent.com/envoyproxy/examples/main/wasm-cc/lib/envoy_filter_http_wasm_example.wasm
url: http://static-file-server.gateway-conformance-infra/wasm/envoy_filter_http_wasm_example.wasm
sha256: 79c9f85128bb0177b6511afa85d587224efded376ac0ef76df56595f1e6315c0
---
apiVersion: gateway.envoyproxy.io/v1alpha1
Expand All @@ -88,4 +88,4 @@ spec:
code:
type: HTTP
http:
url: https://raw.githubusercontent.com/envoyproxy/examples/main/wasm-cc/lib/envoy_filter_http_wasm_example.wasm
url: http://static-file-server.gateway-conformance-infra/wasm/envoy_filter_http_wasm_example.wasm
4 changes: 2 additions & 2 deletions tools/make/examples.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

EXAMPLE_APPS := grpc-ext-auth envoy-als grpc-ext-proc http-ext-auth preserve-case-backend
EXAMPLE_APPS := grpc-ext-auth envoy-als grpc-ext-proc http-ext-auth preserve-case-backend static-file-server
EXAMPLE_IMAGE_PREFIX ?= envoyproxy/gateway-
EXAMPLE_TAG ?= latest

Expand All @@ -26,4 +26,4 @@ go.mod.tidy.examples:
pushd $(ROOT_DIR)/examples/$$app; \
go mod tidy -compat=$(GO_VERSION); \
popd; \
done
done