You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd`git rev-parse --show-toplevel`/docker
# there are a lot of build logs. You may want to check it inside a log file later on.
make build | tee ./athenz-docker-build.log
Deploy Athenz
development environment
deploy commands
cd`git rev-parse --show-toplevel`/docker
# 1. set passwords (P.S. values in *.properties files will overwrite these values)source ./setup-scripts/0.export-default-passwords.sh
# 2. generate key-pairs, certificates and keystore/truststore
make setup-dev-config
# 3. (once ONLY) create docker network
make setup-docker-network
# 4.1 (optional) if you are running web browser and docker containers in the same hostexport HOSTNAME=localhost
# 4.2. run Athenz
make run-docker-dev
Note for UI
To ignore certificate warning from the browser,
for ZMS server certificate,
get ZMS URL by echo https://${HOSTNAME}:${ZMS_PORT:-4443}/zms/v1/status
access ZMS using above URL in the browser
ignore the browser warning (certificate authority invalid)
for UI server certificate,
get UI URL by echo https://${HOSTNAME}:${UI_PORT:-443}/
access UI using above URL in the browser
ignore the browser warning (certificate authority invalid)
Why do I need to explicitly ignore certificate warning from the browser for both ZMS and UI?
You need to connect to ZMS to get a user token during the login process of UI.
Since the certificates generated in DEV. deployment are all self-signed certificates, they are not trusted by the browser.
Also, they may not have the correct ${HOSTNAME} in the SAN field depending on your DEV. deployment.
Hence, explicitly ignoring the browsers warning message is needed for both ZMS and UI.
server.js, login.js, serviceFQN; keys folder is hard coded
configurable listening port
ZMS
need server health check, e.g. readiness probe
Warning message in docker log: Loading class 'com.mysql.jdbc.Driver'. This is deprecated. The new driver class is 'com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
ZTS
docker/zts/var/zts_store/ create as root user by docker for storing policy, better to change the default location folder outside the Athenz project folder
ZPU
If volume not mount to /home/athenz/tmp/zpe/, will have error: 2019/06/12 06:34:09 Failed to get policies for domain: garm, Error:Unable to write Policies for domain:"garm" to file, Error:rename /home/athenz/tmp/zpe/garm.tmp /etc/acceptance-test/zpu/garm.pol: invalid cross-device link
athenz-cli
build with separated docker files (add go.mod to support caching the dependency)
common
file permission for keys (chmod)
bootstrap without user token for zms-cli
user token has IP address, need to fix docker container's IP
no curl in JAVA container, docker health check on ZMS and ZTS are not working
should keep the private keys in the repo, as a reference?