-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
163a490
commit 6887d14
Showing
27 changed files
with
1,382 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.9.6-slim-buster | ||
FROM python:3.10-slim-bullseye | ||
LABEL MAINTAINER="Mike Schiessl - [email protected]" | ||
LABEL APP_LONG="Akamai Universal Log Streamer" | ||
LABEL APP_SHORT="ULS" | ||
|
@@ -11,7 +11,7 @@ ARG ULS_DIR="$HOMEDIR/uls" | |
ARG EXT_DIR="$ULS_DIR/ext" | ||
|
||
ARG ETP_CLI_VERSION="0.3.5" | ||
ARG EAA_CLI_VERSION="0.4.2" | ||
ARG EAA_CLI_VERSION="0.4.4" | ||
ARG MFA_CLI_VERSION="0.0.6" | ||
|
||
# ENV VARS | ||
|
@@ -27,7 +27,8 @@ RUN apt-get update && \ | |
ca-certificates \ | ||
git \ | ||
curl \ | ||
telnet && \ | ||
telnet \ | ||
gcc libssl-dev libffi-dev && \ | ||
rm -rf /var/lib/apt/lists/ | ||
|
||
# USER & GROUP | ||
|
@@ -42,22 +43,26 @@ RUN mkdir -p ${ULS_DIR} | |
# Install ULS | ||
COPY bin/ ${ULS_DIR}/bin | ||
WORKDIR ${ULS_DIR} | ||
RUN pip3 install -r ${ULS_DIR}/bin/requirements.txt | ||
|
||
# Install external CLI'S | ||
## ETP CLI | ||
ENV ETP_CLI_VERSION=$ETP_CLI_VERSION | ||
RUN git clone --depth 1 -b "${ETP_CLI_VERSION}" --single-branch https:/akamai/cli-etp.git ${EXT_DIR}/cli-etp && \ | ||
pip3 install -r ${EXT_DIR}/cli-etp/requirements.txt | ||
|
||
## EAA CLI | ||
ENV EAA-CLI_VERSION=$EAA_CLI_VERSION | ||
RUN git clone --depth 1 -b "${EAA_CLI_VERSION}" --single-branch https:/akamai/cli-eaa.git ${EXT_DIR}/cli-eaa && \ | ||
pip3 install -r ${EXT_DIR}/cli-eaa/requirements.txt | ||
|
||
|
||
## MFA CLI | ||
ENV MFA-CLI_VERSION=$MFA_CLI_VERSION | ||
RUN git clone --depth 1 -b "${MFA_CLI_VERSION}" --single-branch https:/akamai/cli-mfa.git ${EXT_DIR}/cli-mfa && \ | ||
pip3 install -r ${EXT_DIR}/cli-mfa/requirements.txt | ||
|
||
# ENTRYPOINTS / CMD | ||
ENTRYPOINT ["/usr/local/bin/python3","bin/uls.py"] | ||
ENTRYPOINT ["/usr/local/bin/python3","-u","bin/uls.py"] | ||
#CMD ["--help"] | ||
# EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python3 | ||
|
||
|
||
# MCAS | ||
## Global | ||
mcas_name_long = "Microsoft Cloud Applican Security" | ||
mcas_name_short = "MCAS" | ||
|
||
## Requirements | ||
mcas_required_input = ['ETP'] | ||
mcas_required_feed = ['PROXY', 'DNS'] | ||
mcas_required_cliformat = ['JSON'] | ||
|
||
## MCAS INPUT LOG FORMAT | ||
mcas_input_format = "detection_time={0} client_ip={1} destination_ip={2} domain={3} user_name={4} bytes_uploaded={5} bytes_downloaded={6} bytes_total={7} action={8}" | ||
|
||
|
||
# JMESPATH | ||
## Global | ||
jmespath_name_long = "JMESPath https://jmespath.org/" | ||
jmespath_name_short = "JMESPath" | ||
|
||
## Requirements | ||
jmespath_required_cliformat = ['JSON'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.