Skip to content

Commit 9664deb

Browse files
Merge branch 'master' into feat/zombie-on-policy-fail
2 parents 1e26831 + a001207 commit 9664deb

9 files changed

Lines changed: 3568 additions & 68 deletions

File tree

.github/workflows/release.yml

Lines changed: 163 additions & 63 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ main
7676
/coprocess/*.pb.go-e
7777
ci/tests/specs/tmp
7878
ci/tests/specs/node_modules
79-
ci/tests/specs/package-lock.json
8079
ci/tests/specs/gateway.collection.postman.json
8180
ci/tests/specs/.env
8281
ci/tests/specs/apps

ci/Dockerfile.distroless

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Generated by: gromit policy
22

3+
ARG BASE_IMAGE=gcr.io/distroless/base-debian13:nonroot
4+
35
FROM debian:trixie-slim AS deb
46
ARG TARGETARCH
57
ARG BUILD_PACKAGE_NAME
@@ -10,7 +12,7 @@ ENV DEBIAN_FRONTEND=noninteractive
1012
COPY ${BUILD_PACKAGE_NAME}_*${TARGETARCH}.deb /
1113
RUN dpkg -i /${BUILD_PACKAGE_NAME}_*${TARGETARCH}.deb && rm /*.deb
1214

13-
FROM gcr.io/distroless/base-debian12:latest
15+
FROM ${BASE_IMAGE}
1416

1517
COPY --from=deb /opt/tyk-gateway /opt/tyk-gateway
1618

ci/goreleaser/goreleaser.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,60 @@ builds:
5757
goarch:
5858
- s390x
5959
binary: tyk
60+
- id: fips-amd64
61+
flags:
62+
- -tags=goplugin,ee,fips
63+
- -trimpath
64+
env:
65+
- NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
66+
- CC=gcc
67+
- GOFIPS140=v1.0.0
68+
ldflags:
69+
- -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
70+
- -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
71+
- -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
72+
- -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
73+
goos:
74+
- linux
75+
goarch:
76+
- amd64
77+
binary: tyk
78+
- id: fips-arm64
79+
flags:
80+
- -tags=goplugin,ee,fips
81+
- -trimpath
82+
env:
83+
- NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
84+
- CC=aarch64-linux-gnu-gcc
85+
- GOFIPS140=v1.0.0
86+
ldflags:
87+
- -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
88+
- -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
89+
- -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
90+
- -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
91+
goos:
92+
- linux
93+
goarch:
94+
- arm64
95+
binary: tyk
96+
- id: fips-s390x
97+
flags:
98+
- -tags=goplugin,ee,fips
99+
- -trimpath
100+
env:
101+
- NOP=nop # ignore this, it is jsut to avoid a complex conditional in the templates
102+
- CC=s390x-linux-gnu-gcc
103+
- GOFIPS140=v1.0.0
104+
ldflags:
105+
- -X github.com/TykTechnologies/tyk/internal/build.Version={{.Version}}
106+
- -X github.com/TykTechnologies/tyk/internal/build.Commit={{.FullCommit}}
107+
- -X github.com/TykTechnologies/tyk/internal/build.BuildDate={{.Date}}
108+
- -X github.com/TykTechnologies/tyk/internal/build.BuiltBy=goreleaser
109+
goos:
110+
- linux
111+
goarch:
112+
- s390x
113+
binary: tyk
60114
- id: std-amd64
61115
flags:
62116
- -tags=goplugin
@@ -168,6 +222,65 @@ nfpms:
168222
signature:
169223
key_file: tyk.io.signing.key
170224
type: origin
225+
- id: fips
226+
vendor: "Tyk Technologies Ltd"
227+
homepage: "https://tyk.io"
228+
maintainer: "Tyk <info@tyk.io>"
229+
description: Tyk API Gateway Enterprise Edition written in Go, supporting REST, GraphQL, TCP and gRPC protocols Built with FIPS 140-3 compliant cryptography
230+
package_name: tyk-gateway-fips
231+
file_name_template: "{{ .ConventionalFileName }}"
232+
ids:
233+
- fips-amd64
234+
- fips-arm64
235+
- fips-s390x
236+
formats:
237+
- deb
238+
- rpm
239+
contents:
240+
- src: "README.md"
241+
dst: "/opt/share/docs/tyk-gateway/README.md"
242+
- src: "ci/install/*"
243+
dst: "/opt/tyk-gateway/install"
244+
- src: ci/install/inits/systemd/system/tyk-gateway.service
245+
dst: /lib/systemd/system/tyk-gateway.service
246+
- src: ci/install/inits/sysv/init.d/tyk-gateway
247+
dst: /etc/init.d/tyk-gateway
248+
- src: /opt/tyk-gateway
249+
dst: /opt/tyk
250+
type: "symlink"
251+
- src: "LICENSE.md"
252+
dst: "/opt/share/docs/tyk-gateway/LICENSE.md"
253+
- src: "apps/app_sample.*"
254+
dst: "/opt/tyk-gateway/apps"
255+
- src: "templates/*.json"
256+
dst: "/opt/tyk-gateway/templates"
257+
- src: "templates/playground/*"
258+
dst: "/opt/tyk-gateway/templates/playground"
259+
- src: "middleware/*.js"
260+
dst: "/opt/tyk-gateway/middleware"
261+
- src: "event_handlers/sample/*.js"
262+
dst: "/opt/tyk-gateway/event_handlers/sample"
263+
- src: "policies/*.json"
264+
dst: "/opt/tyk-gateway/policies"
265+
- src: "coprocess/*"
266+
dst: "/opt/tyk-gateway/coprocess"
267+
- src: tyk.conf.example
268+
dst: /opt/tyk-gateway/tyk.conf
269+
type: "config|noreplace"
270+
scripts:
271+
preinstall: "ci/install/before_install.sh"
272+
postinstall: "ci/install/post_install.sh"
273+
postremove: "ci/install/post_remove.sh"
274+
bindir: "/opt/tyk-gateway"
275+
rpm:
276+
scripts:
277+
posttrans: ci/install/post_trans.sh
278+
signature:
279+
key_file: tyk.io.signing.key
280+
deb:
281+
signature:
282+
key_file: tyk.io.signing.key
283+
type: origin
171284
- id: std
172285
vendor: "Tyk Technologies Ltd"
173286
homepage: "https://tyk.io"
@@ -234,6 +347,12 @@ publishers:
234347
env:
235348
- PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
236349
cmd: packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
350+
- name: fips
351+
ids:
352+
- fips
353+
env:
354+
- PACKAGECLOUD_TOKEN={{ .Env.PACKAGECLOUD_TOKEN }}
355+
cmd: packagecloud publish --debvers "{{ .Env.DEBVERS }}" --rpmvers "{{ .Env.RPMVERS }}" tyk/tyk-ee-unstable {{ .ArtifactPath }}
237356
- name: std
238357
ids:
239358
- std

ci/tests/specs/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tasks:
1313
desc: "Run the OpenAPI specification tests"
1414
cmds:
1515
- venom run testdata/populate_gateway_test_data.yaml --var bearerToken=$PORTMAN_API_Key --stop-on-failure && rm venom*.log
16-
- npm install
16+
- npm ci
1717
- npm start
1818

1919
build:

0 commit comments

Comments
 (0)