You're a Yahoo Athenz fan, so this app is created for you. athenz-agent contains athenz ZPE and ZPU utilities in Go language.
ZPU will download the domains' policy files and store
them into the filesystem. In other side, ZPE will use that policy files, and it will cache them into memory to use them as
fast as possible.
Athenz agent exposes two APIs:
- CheckAccessWithToken
- GetServiceToken
CheckAccessWithToken: Accepts three arguments including client service RoleToken, provider service access, and provider service resource.
GetServiceToken: Has no input argument. It returns RoleToken az result.
For using Makefile you must edit this file and change some variables as you want.
- Set
BUILDPATHto any directory that you want build this project into:
BUILDPATH=/home/athenz/sidecar
- Set ZMS url to
URLvariable:
URL=https://localhost:4443/
- You need to use
athenz-confutility to getathenz.conffile from ZMS server. To do that first you need to add ZMS server cert file to your local machine/etc/ssl/certsfolder and runsudo c_rehash. Now you can setathenz-confexecutable file directory toATHENZCONFvariable:
ATHENZCONF=/home/athenz/athenz-zms-1.8.10/bin/linux
- Use
make synccommand to get all project dependencies. - Now you can build the project with
make buildcommand in command line. - Run project with this command:
cd $(BUILDPATH) && ./athenz-agentAll default configuration files placed in build/config path.
MIT License, please see LICENSE for details.
