-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
475 lines (383 loc) · 19.5 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
ifeq ($(wildcard athenz),)
SUBMODULE := $(shell git submodule add --force https://github.com/AthenZ/athenz.git athenz)
endif
ifeq ($(DOCKER_TAG),)
ifeq ($(VERSION),)
VERSION := $(shell git submodule status | sed 's/^.* athenz .*v\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/g')
ifeq ($(VERSION),)
VERSION := $(shell cat athenz/pom.xml | grep -E "<version>[0-9]+.[0-9]+.[0-9]+</version>" | head -n1 | sed -e 's/.*>\([0-9]*\.[0-9]*\.[0-9]*\)<.*/\1/g')
endif
DOCKER_TAG := :latest
else
DOCKER_TAG := :v$(VERSION)
endif
endif
ifeq ($(PATCH),)
PATCH := true
endif
ifeq ($(PUSH),)
PUSH := true
endif
ifeq ($(PUSH),true)
PUSH_OPTION := --push
endif
# GID and UID of the default athenz:athenz user inside the container
GID=$(DOCKER_GID)
UID=$(DOCKER_UID)
GID_ARG := $(if $(GID),--build-arg GID=$(GID),--build-arg GID)
UID_ARG := $(if $(UID),--build-arg UID=$(UID),--build-arg UID)
BUILD_DATE=$(shell date -u +'%Y-%m-%dT%H:%M:%SZ')
VCS_REF=$(shell cd athenz && git rev-parse --short HEAD)
ifeq ($(XPLATFORMS),)
XPLATFORMS := linux/amd64,linux/arm64
endif
XPLATFORM_ARGS := --platform=$(XPLATFORMS)
BUILD_ARG := --build-arg 'BUILD_DATE=$(BUILD_DATE)' --build-arg 'VCS_REF=$(VCS_REF)' --build-arg 'VERSION=$(VERSION)'
ifeq ($(DOCKER_REGISTRY_OWNER),)
DOCKER_REGISTRY_OWNER=ctyano
endif
ifeq ($(DOCKER_REGISTRY),)
DOCKER_REGISTRY=ghcr.io/$(DOCKER_REGISTRY_OWNER)/
endif
ifeq ($(DOCKER_CACHE),)
DOCKER_CACHE=false
endif
JDK_IMAGE := docker.io/library/openjdk:22-slim-bullseye
ifeq ($(GOOS),)
GOOS=$(shell go env GOOS | sed -e "s/'//g")
export GOPATH
endif
ifeq ($(GOARCH),)
GOARCH=$(shell go env GOARCH | sed -e "s/'//g")
export GOPATH
endif
ifeq ($(GOPATH),)
GOPATH=$(shell go env GOPATH | sed -e "s/'//g")
export GOPATH
endif
ifeq ($(GOCACHE),)
GOCACHE=$(shell go env GOCACHE | sed -e "s/'//g")
export GOCACHE
endif
.PHONY: buildx
.SILENT: version
build: build-athenz-db build-athenz-zms-server build-athenz-zts-server build-athenz-cli build-athenz-ui
build-athenz-db:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-db$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-db:latest; \
DOCKERFILE_PATH=./docker/db/Dockerfile; \
test $(DOCKER_CACHE) && DOCKER_CACHE_OPTION="--cache-from $$IMAGE_NAME"; \
docker build $(BUILD_ARG) $(GID_ARG) $(UID_ARG) $$DOCKER_CACHE_OPTION -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
build-athenz-zms-server: build-java
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zms-server$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zms-server:latest; \
DOCKERFILE_PATH=./docker/zms/Dockerfile; \
test $(DOCKER_CACHE) && DOCKER_CACHE_OPTION="--cache-from $$IMAGE_NAME"; \
docker build $(BUILD_ARG) $(GID_ARG) $(UID_ARG) $$DOCKER_CACHE_OPTION -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
build-athenz-zts-server: build-java
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zts-server$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zts-server:latest; \
DOCKERFILE_PATH=./docker/zts/Dockerfile; \
test $(DOCKER_CACHE) && DOCKER_CACHE_OPTION="--cache-from $$IMAGE_NAME"; \
docker build $(BUILD_ARG) $(GID_ARG) $(UID_ARG) $$DOCKER_CACHE_OPTION -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
build-athenz-ui:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-ui$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-ui:latest; \
DOCKERFILE_PATH=./docker/ui/Dockerfile; \
test $(DOCKER_CACHE) && DOCKER_CACHE_OPTION="--cache-from $$IMAGE_NAME"; \
docker build $(BUILD_ARG) $(GID_ARG) $(UID_ARG) $$DOCKER_CACHE_OPTION -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
build-athenz-cli:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-cli$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-cli:latest; \
DOCKERFILE_PATH=./docker/cli/Dockerfile; \
test $(DOCKER_CACHE) && DOCKER_CACHE_OPTION="--cache-from $$IMAGE_NAME"; \
docker build $(BUILD_ARG) $(GID_ARG) $(UID_ARG) $$DOCKER_CACHE_OPTION -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
buildx: buildx-athenz-db buildx-athenz-zms-server buildx-athenz-zts-server buildx-athenz-cli buildx-athenz-ui
buildx-athenz-db:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-db$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-db:latest; \
DOCKERFILE_PATH=./docker/db/Dockerfile; \
DOCKER_BUILDKIT=1 docker buildx build $(BUILD_ARG) $(XPLATFORM_ARGS) $(PUSH_OPTION) $(GID_ARG) $(UID_ARG) --cache-from $$IMAGE_NAME -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
buildx-athenz-zms-server: build-java
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zms-server$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zms-server:latest; \
DOCKERFILE_PATH=./docker/zms/Dockerfile; \
DOCKER_BUILDKIT=1 docker buildx build $(BUILD_ARG) $(XPLATFORM_ARGS) $(PUSH_OPTION) $(GID_ARG) $(UID_ARG) --cache-from $$IMAGE_NAME -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
buildx-athenz-zts-server: build-java
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zts-server$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-zts-server:latest; \
DOCKERFILE_PATH=./docker/zts/Dockerfile; \
DOCKER_BUILDKIT=1 docker buildx build $(BUILD_ARG) $(XPLATFORM_ARGS) $(PUSH_OPTION) $(GID_ARG) $(UID_ARG) --cache-from $$IMAGE_NAME -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
buildx-athenz-ui:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-ui$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-ui:latest; \
DOCKERFILE_PATH=./docker/ui/Dockerfile; \
DOCKER_BUILDKIT=1 docker buildx build $(BUILD_ARG) $(XPLATFORM_ARGS) $(PUSH_OPTION) $(GID_ARG) $(UID_ARG) --cache-from $$IMAGE_NAME -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
buildx-athenz-cli:
IMAGE_NAME=$(DOCKER_REGISTRY)athenz-cli$(DOCKER_TAG); \
LATEST_IMAGE_NAME=$(DOCKER_REGISTRY)athenz-cli:latest; \
DOCKERFILE_PATH=./docker/cli/Dockerfile; \
DOCKER_BUILDKIT=1 docker buildx build $(BUILD_ARG) $(XPLATFORM_ARGS) $(PUSH_OPTION) $(GID_ARG) $(UID_ARG) --cache-from $$IMAGE_NAME -t $$IMAGE_NAME -t $$LATEST_IMAGE_NAME -f $$DOCKERFILE_PATH .
mirror-athenz-amd64-images:
IMAGE=athenz-db; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=athenz-zms-server; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=athenz-zts-server; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=athenz-ui; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=athenz-cli; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=k8s-athenz-sia; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
IMAGE=athenz-plugins; docker pull --platform linux/amd64 ghcr.io/ctyano/$$IMAGE:latest && docker tag ghcr.io/ctyano/$$IMAGE:latest docker.io/tatyano/$$IMAGE:latest && docker push docker.io/tatyano/$$IMAGE:latest
install-golang:
which go \
|| (curl -sf https://webi.sh/golang | sh \
&& ~/.local/bin/pathman add ~/.local/bin)
install-rdl-tools: install-golang
go install github.com/ardielle/ardielle-go/...@master && \
go install github.com/ardielle/ardielle-tools/...@master && \
export PATH=$$PATH:$$GOPATH/bin
mkdir -p athenz/clients/go/zms/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/zms/bin/ && \
mkdir -p athenz/clients/go/zts/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/zts/bin/ && \
mkdir -p athenz/clients/go/msd/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/msd/bin/ && \
chmod a+x athenz/clients/go/*/bin/*
patch:
$(PATCH) && rsync -av --exclude=".gitkeep" patchfiles/* athenz
build-java: checkout-version patch install-rdl-tools
mvn -B clean install \
-f athenz/pom.xml \
-Dproject.basedir=athenz \
-Dproject.build.directory=athenz \
-Dmaven.test.skip=true \
-Djacoco.skip=true \
-Dcheckstyle.skip \
-pl core/zms \
-pl core/zts \
-pl core/msd \
-pl rdl/rdl-gen-athenz-java-model \
-pl rdl/rdl-gen-athenz-java-client \
-pl clients/java/zms \
-pl clients/java/zts \
-pl libs/java/auth_core \
-pl libs/java/client_common \
-pl libs/java/server_common \
-pl libs/java/instance_provider \
-pl libs/java/cert_refresher \
-pl libs/java/dynamodb_client_factory \
-pl rdl/rdl-gen-athenz-server \
-pl servers/zms \
-pl servers/zts \
-pl containers/jetty \
-pl assembly/zms \
-pl assembly/zts
build-go: checkout-version install-rdl-tools
go install github.com/ardielle/ardielle-go/...@master && \
go install github.com/ardielle/ardielle-tools/...@master && \
mkdir -p athenz/clients/go/zms/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/zms/bin/ && \
mkdir -p athenz/clients/go/zts/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/zts/bin/ && \
mkdir -p athenz/clients/go/msd/bin && \
cp $$GOPATH/bin/rdl* athenz/clients/go/msd/bin/ && \
mvn -B install \
-f athenz/pom.xml \
-Dproject.basedir=athenz \
-Dproject.build.directory=athenz \
-Dmaven.test.skip=true \
-Djacoco.skip=true \
-pl core/zms \
-pl core/zts \
-pl core/msd \
-pl rdl/rdl-gen-athenz-go-model \
-pl rdl/rdl-gen-athenz-go-client \
-pl rdl/rdl-gen-athenz-java-model \
-pl clients/go/zms \
-pl clients/go/zts \
-pl clients/go/msd \
-pl libs/go/zmscli \
-pl libs/go/athenzutils \
-pl libs/go/athenzconf \
-pl utils/zms-cli \
-pl utils/athenz-conf \
-pl utils/zts-accesstoken \
-pl utils/zts-rolecert \
-pl utils/zts-svccert \
-pl assembly/utils
clean: checkout
mvn -B clean \
-f athenz/pom.xml \
-Dproject.basedir=athenz \
-Dproject.build.directory=athenz \
-Dmaven.test.skip=true -Djacoco.skip=true \
-Djacoco.skip=true
diff:
@diff athenz patchfiles
checkout:
@cd athenz/ && git checkout .
submodule-update: checkout
@git submodule update --init --remote
checkout-version: submodule-update
@cd athenz/ && git fetch --refetch --tags origin && git checkout v$(VERSION)
version:
@echo "Version: $(VERSION)"
@echo "Tag Version: v$(VERSION)"
install-pathman:
test -e ~/.local/bin/pathman \
|| curl -sf https://webi.sh/pathman | sh
install-jq: install-pathman
which jq \
|| (curl -sf https://webi.sh/jq | sh \
&& ~/.local/bin/pathman add ~/.local/bin)
install-yq: install-pathman
which yq \
|| (curl -sf https://webi.sh/yq | sh \
&& ~/.local/bin/pathman add ~/.local/bin)
install-step: install-pathman
which step \
|| (STEP_VERSION=$$(curl -sf https://api.github.com/repos/smallstep/cli/releases | jq -r .[].tag_name | grep -E '^v[0-9]*.[0-9]*.[0-9]*$$' | head -n1 | sed -e 's/.*v\([0-9]*.[0-9]*.[0-9]*\).*/\1/g') \
; curl -fL "https://github.com/smallstep/cli/releases/download/v$${STEP_VERSION}/step_$(GOOS)_$${STEP_VERSION}_$(GOARCH).tar.gz" | tar -xz -C ~/.local/bin/ \
&& ln -sf ~/.local/bin/step_$${STEP_VERSION}/bin/step ~/.local/bin/step \
&& ~/.local/bin/pathman add ~/.local/bin)
install-kustomize: install-pathman
which kustomize \
|| (cd ~/.local/bin \
&& curl "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash \
&& ~/.local/bin/pathman add ~/.local/bin)
install-parsers: install-jq install-yq install-step
clean-certificates:
rm -rf keys certs
generate-ca:
mkdir keys certs ||:
openssl genrsa -out keys/ca.private.pem 4096
openssl rsa -pubout -in keys/ca.private.pem -out keys/ca.public.pem
openssl req -new -x509 -days 99999 -config openssl/ca.openssl.config -extensions ext_req -key keys/ca.private.pem -out certs/ca.cert.pem
generate-zms: generate-ca
mkdir keys certs ||:
openssl genrsa -out keys/zms.private.pem 4096
openssl rsa -pubout -in keys/zms.private.pem -out keys/zms.public.pem
openssl req -config openssl/zms.openssl.config -new -key keys/zms.private.pem -out certs/zms.csr.pem -extensions ext_req
openssl x509 -req -in certs/zms.csr.pem -CA certs/ca.cert.pem -CAkey keys/ca.private.pem -CAcreateserial -out certs/zms.cert.pem -days 99999 -extfile openssl/zms.openssl.config -extensions ext_req
openssl verify -CAfile certs/ca.cert.pem certs/zms.cert.pem
#openssl pkcs12 -export -noiter -out certs/zms_keystore.pkcs12 -in certs/zms.cert.pem -inkey keys/zms.private.pem -password pass:athenz
#keytool -import -noprompt -file certs/ca.cert.pem -alias ca -keystore certs/zms_truststore.jks -storepass athenz
#keytool --list -keystore certs/zms_truststore.jks -storepass athenz
generate-zts: generate-zms
mkdir keys certs ||:
openssl genrsa -out keys/zts.private.pem 4096
openssl rsa -pubout -in keys/zts.private.pem -out keys/zts.public.pem
openssl req -config openssl/zts.openssl.config -new -key keys/zts.private.pem -out certs/zts.csr.pem -extensions ext_req
openssl x509 -req -in certs/zts.csr.pem -CA certs/ca.cert.pem -CAkey keys/ca.private.pem -CAcreateserial -out certs/zts.cert.pem -days 99999 -extfile openssl/zts.openssl.config -extensions ext_req
openssl verify -CAfile certs/ca.cert.pem certs/zts.cert.pem
#openssl pkcs12 -export -noiter -out certs/zts_keystore.pkcs12 -in certs/zts.cert.pem -inkey keys/zts.private.pem -password pass:athenz
#openssl pkcs12 -export -noiter -out certs/zms_client_keystore.pkcs12 -in certs/zts.cert.pem -inkey keys/zts.private.pem -password pass:athenz
#openssl pkcs12 -export -noiter -out certs/zts_signer_keystore.pkcs12 -in certs/ca.cert.pem -inkey keys/ca.private.pem -password pass:athenz
#keytool -import -noprompt -file certs/ca.cert.pem -alias ca -keystore certs/zts_truststore.jks -storepass athenz
#keytool -import -noprompt -file certs/ca.cert.pem -alias ca -keystore certs/zms_client_truststore.jks -storepass athenz
#keytool --list -keystore certs/zts_truststore.jks -storepass athenz
generate-admin: generate-ca
mkdir keys certs ||:
openssl genrsa -out keys/athenz_admin.private.pem 4096
openssl rsa -pubout -in keys/athenz_admin.private.pem -out keys/athenz_admin.public.pem
openssl req -config openssl/athenz_admin.openssl.config -new -key keys/athenz_admin.private.pem -out certs/athenz_admin.csr.pem -extensions ext_req
openssl x509 -req -in certs/athenz_admin.csr.pem -CA certs/ca.cert.pem -CAkey keys/ca.private.pem -CAcreateserial -out certs/athenz_admin.cert.pem -days 99999 -extfile openssl/athenz_admin.openssl.config -extensions ext_req
openssl verify -CAfile certs/ca.cert.pem certs/athenz_admin.cert.pem
generate-ui: generate-ca
mkdir keys certs ||:
openssl genrsa -out keys/ui.private.pem 4096
openssl rsa -pubout -in keys/ui.private.pem -out keys/ui.public.pem
openssl req -config openssl/ui.openssl.config -new -key keys/ui.private.pem -out certs/ui.csr.pem -extensions ext_req
openssl x509 -req -in certs/ui.csr.pem -CA certs/ca.cert.pem -CAkey keys/ca.private.pem -CAcreateserial -out certs/ui.cert.pem -days 99999 -extfile openssl/ui.openssl.config -extensions ext_req
openssl verify -CAfile certs/ca.cert.pem certs/ui.cert.pem
generate-identityprovider: generate-ca
mkdir keys certs ||:
openssl genrsa -out - 4096 | openssl pkey -out keys/identityprovider.private.pem
openssl rsa -pubout -in keys/identityprovider.private.pem -out keys/identityprovider.public.pem
generate-certificates: generate-ca generate-zms generate-zts generate-admin generate-ui generate-identityprovider
clean-kubernetes-athenz: clean-certificates
@$(MAKE) -C kubernetes clean-athenz
load-docker-images: load-docker-images-internal load-docker-images-external
load-docker-images-internal:
docker pull $(DOCKER_REGISTRY)athenz-db:latest
docker pull $(DOCKER_REGISTRY)athenz-zms-server:latest
docker pull $(DOCKER_REGISTRY)athenz-zts-server:latest
docker pull $(DOCKER_REGISTRY)athenz-cli:latest
docker pull $(DOCKER_REGISTRY)athenz-ui:latest
load-docker-images-external:
docker pull docker.io/ghostunnel/ghostunnel:latest
docker pull $(DOCKER_REGISTRY)athenz-plugins:latest
docker pull docker.io/openpolicyagent/kube-mgmt:latest
docker pull docker.io/ealen/echo-server:latest
docker pull docker.io/envoyproxy/envoy:v1.29-latest
docker pull docker.io/portainer/kubectl-shell:latest
docker pull docker.io/openpolicyagent/opa:latest-static
docker pull $(DOCKER_REGISTRY)k8s-athenz-sia:latest
docker pull $(DOCKER_REGISTRY)docker-vegeta:latest
docker pull docker.io/athenz/authorization-proxy:latest
load-kubernetes-images: version install-kustomize
@$(MAKE) -C kubernetes kind-load-images
deploy-kubernetes-athenz: generate-certificates
@$(MAKE) -C kubernetes deploy-athenz
deploy-kubernetes-athenz-identityprovider: install-parsers
@$(MAKE) -C kubernetes setup-athenz-identityprovider deploy-athenz-identityprovider
test-kubernetes-athenz-identityprovider:
@$(MAKE) -C kubernetes test-athenz-identityprovider
test-kubernetes-athenz-identityprovider-openpolicyagent:
@$(MAKE) -C kubernetes test-athenz-identityprovider-openpolicyagent
test-kubernetes-athenz-identityprovider-openpolicyagent-coverage:
@$(MAKE) -C kubernetes test-athenz-identityprovider-openpolicyagent-coverage
deploy-kubernetes-athenz-authorizer:
@$(MAKE) -C kubernetes setup-athenz-authorizer deploy-athenz-authorizer
test-kubernetes-athenz-authorizer:
@$(MAKE) -C kubernetes test-athenz-authorizer
deploy-kubernetes-athenz-authzenvoy:
@$(MAKE) -C kubernetes setup-athenz-authzenvoy deploy-athenz-authzenvoy
test-kubernetes-athenz-authzenvoy:
@$(MAKE) -C kubernetes test-athenz-authzenvoy
deploy-kubernetes-athenz-authzwebhook:
@$(MAKE) -C kubernetes setup-athenz-authzwebhook deploy-athenz-authzwebhook
test-kubernetes-athenz-authzwebhook:
@$(MAKE) -C kubernetes test-athenz-authzwebhook
deploy-kubernetes-athenz-authzproxy:
@$(MAKE) -C kubernetes setup-athenz-authzproxy deploy-athenz-authzproxy
test-kubernetes-athenz-authzproxy:
@$(MAKE) -C kubernetes test-athenz-authzproxy
deploy-kubernetes-athenz-client:
@$(MAKE) -C kubernetes setup-athenz-client deploy-athenz-client
test-kubernetes-athenz-client:
@$(MAKE) -C kubernetes test-athenz-client
deploy-kubernetes-athenz-workloads:
@$(MAKE) -C kubernetes setup-athenz-workloads deploy-athenz-workloads
test-kubernetes-athenz-workloads:
@$(MAKE) -C kubernetes test-athenz-workloads
deploy-kubernetes-athenz-loadtest:
@$(MAKE) -C kubernetes deploy-athenz-loadtest
test-kubernetes-athenz-envoy-loadtest:
@$(MAKE) -C kubernetes test-athenz-envoy-loadtest
test-kubernetes-athenz-loadtest:
@$(MAKE) -C kubernetes test-athenz-loadtest
report-kubernetes-athenz-loadtest:
@$(MAKE) -C kubernetes report-athenz-loadtest
test-kubernetes-athenz-envoy2envoyextauthz:
@$(MAKE) -C kubernetes test-athenz-envoy2envoyextauthz
test-kubernetes-athenz-envoy2envoyfilter:
@$(MAKE) -C kubernetes test-athenz-envoy2envoyfilter
test-kubernetes-athenz-envoy2envoywebhook:
@$(MAKE) -C kubernetes test-athenz-envoy2envoywebhook
test-kubernetes-athenz-envoy2authzproxy:
@$(MAKE) -C kubernetes test-athenz-envoy2authzproxy
test-kubernetes-athenz-showcases:
@$(MAKE) -C kubernetes test-athenz-showcases
check-kubernetes-athenz: install-parsers
@$(MAKE) -C kubernetes check-athenz
test-kubernetes-athenz: install-parsers
@$(MAKE) -C kubernetes test-athenz
clean-docker-athenz: clean-certificates
@VERSION=$(VERSION) $(MAKE) -C docker clean-athenz
build-deploy-docker-athenz: build-java generate-certificates
@VERSION=$(VERSION) $(MAKE) -C docker build-deploy-athenz
deploy-docker-athenz: generate-certificates
@VERSION=$(VERSION) $(MAKE) -C docker deploy-athenz
check-docker-athenz: install-parsers
@$(MAKE) -C docker check-athenz
test-docker-athenz: install-parsers
@$(MAKE) -C docker test-athenz