From 2895f181a0cb648d2eb9b258ce86d4e38855c7e2 Mon Sep 17 00:00:00 2001 From: Dan Timoney Date: Fri, 30 Apr 2021 14:24:50 -0400 Subject: Support env variables for CADI settings Update code to read CADI properties using EnvProperties class to resolve env variable references and then pass resolved values to CadiFilter, instead of passing file itself as cadi_prop_files property setting. Change-Id: Ia0da0b711a48a51c3fab06412bf01efdede542a2 Issue-ID: SDNC-1532 Signed-off-by: Dan Timoney --- .../src/main/resources/cadi-example.properties | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 ms/gra/gra-docker/src/main/resources/cadi-example.properties (limited to 'ms/gra/gra-docker/src/main/resources/cadi-example.properties') diff --git a/ms/gra/gra-docker/src/main/resources/cadi-example.properties b/ms/gra/gra-docker/src/main/resources/cadi-example.properties new file mode 100644 index 0000000..c4ab3a4 --- /dev/null +++ b/ms/gra/gra-docker/src/main/resources/cadi-example.properties @@ -0,0 +1,55 @@ +# +# https://wiki.web.att.com/display/cadi/CADI+Deployment +# This is a normal Java Properties File +# Comments are with Pound Signs at beginning of lines, +# and multi-line expression of properties can be obtained by backslash at end of line + +# CSP has Production mode (active users) or DEVL mode +#csp_domain=DEVL +csp_domain=PROD + +# Http app intended to be accessible only by the users on this machine +#localhost_allow=false +localhost_allow=TRUE + +# Deny all localhost activity. +#localhost_deny=false +#csp_devl_localhost=true + +# Report all AUTHN and AUTHZ activity +cadi_loglevel=DEBUG +basic_warn=TRUE + +# Use Certificates for authentication +cadi_protocols= +#cadi_prop_files=/opt/app/aafcertman/com.att.sdncp.dev.props + +# Basic Auth on HTTP without SSL shows warning +# TRUE will warn everytime, FALSE will warn only once at beginning +#basic_warn=FALSE + +# The realm reported on BasicAuth callbacks +basic_realm=csp.att.com + +# Configure AAF +aaf_locate_url=https://${AAF_HOST:-aafist-azure.test.att.com} +aaf_url=https://${AAF_HOST:-aafist-azure.test.att.com}/locate/com.att.aaf.service:2.0 +aaf_id=${AAF_MECHID}@${AAF_NAMESPACE:-dev.sdncp.att.com} + +aaf_password=${AAF_MECHID_CRED} +aaf_lur=com.att.cadi.aaf.v2_0.AAFLurPerm + +# User Expires for not Unit Test should be something like 900000 (15 mins) default is 10 mins +# 15 seconds is so that Unit Tests don't delay compiles etc +aaf_user_expires=600000 +# High count.Rough top number of objects held in Cache per cycle. If high is reached, more are +# recycled next time. Depending on Memory usage, 2000 is probably decent. 1000 is default +aaf_high_count=1000 +aaf_clean_interval=30000 + +# copied values - should use real values +cadi_latitude=${AAF_LATITUDE:-30.267} +cadi_longitude=${AAF_LONGITUDE:--97.743} + +# cadi conversion file +#cadi_bath_convert=/opt/sdnc/gra/config/bath_config.csv -- cgit 1.2.3-korg