Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
064bd5b
use segregated services
ankush-jain-akto Mar 22, 2022
4bb5d33
enable autoscaling with incoming data as target
ankush-jain-akto Mar 22, 2022
bcdd251
enable cross-zone load balancing
ankush-jain-akto Mar 23, 2022
7abc5e9
sample ecs test template
ankush-jain-akto Mar 23, 2022
0f02c9b
fix typo
ankush-jain-akto Mar 24, 2022
109b68c
remove az
ankush-jain-akto Mar 24, 2022
9397900
added env variable USE_HOSTNAME
avneesh-akto Mar 30, 2022
84859ee
added line break
avneesh-akto Mar 30, 2022
c948170
use USE_HOSTNAME flag
ankush-jain-akto Apr 3, 2022
7f2a415
add mem limits and give unique path to kafka
ankush-jain-akto Apr 8, 2022
7e4387c
Merge branch 'feature/segregation_2' of https://github.com/akto-api-s…
ankush-jain-akto Apr 8, 2022
29c82e7
remove port
ankush-jain-akto Apr 9, 2022
fe3ce8a
add kafka limits
ankush-jain-akto Apr 11, 2022
c3dd059
add flags to docker-compose
ankush-jain-akto Apr 12, 2022
7572ec6
set version to 2 for mem_limit option
ankush-jain-akto Apr 12, 2022
7151ccf
add key pair to akto instance template
ankush-jain-akto Apr 22, 2022
a0612df
unique eni
avneesh-akto May 2, 2022
897c1b2
instance refresh
ankush-jain-akto May 22, 2022
6c4d602
correct load balancer setup
ankush-jain-akto May 31, 2022
d1cc3cb
Merge pull request #18 from akto-api-security/feature/unique_eni
ankush-jain-akto Jun 1, 2022
3029355
remove port range from creating mirroring sessions
ankush-jain-akto Jun 3, 2022
8e316be
filter using elb names
ankush-jain-akto Jun 7, 2022
7a98077
Merge branch 'feature/segregation_2' of https://github.com/akto-api-s…
ankush-jain-akto Jun 7, 2022
e9564d3
trigger save-collection-names lambda from create-mirroring-session la…
ankush-jain-akto Jul 7, 2022
2dc3eaa
wait to execute save collections lambda
ankush-jain-akto Jul 7, 2022
41d864f
setup Akto using single template
ankush-jain-akto Jul 8, 2022
f63741d
Reduce input parameters
ankush-jain-akto Jul 8, 2022
0928f3a
enable adding load balancers incrementally
ankush-jain-akto Jul 10, 2022
9883a4e
remove port range
ankush-jain-akto Jul 11, 2022
6bd4a89
Merge pull request #19 from akto-api-security/feature/remove_port_range
ankush-jain-akto Jul 11, 2022
83920ba
Merge branch 'feature/segregation_2' into feature/unify_setup
ankush-jain-akto Jul 11, 2022
7ea62b6
Merge pull request #20 from akto-api-security/feature/unify_setup
ankush-jain-akto Jul 11, 2022
fce0408
add region mappings for AMIs
ankush-jain-akto Jul 21, 2022
6df5d04
Merge branch 'feature/unify_setup' of https://github.com/akto-api-sec…
ankush-jain-akto Jul 21, 2022
577fc93
Merge pull request #21 from akto-api-security/feature/unify_setup
ankush-jain-akto Jul 21, 2022
4b66861
renamed to segregation_2
avneesh-akto Jul 23, 2022
0188810
added testing module to dashboard
avneesh-akto Jul 23, 2022
8799097
Merge pull request #22 from akto-api-security//feature/segregation_merge
ankush-jain-akto Jul 23, 2022
566ac0c
add kafka to dashboard instance
ankush-jain-akto Jul 25, 2022
7024dfe
set version to support mem_limit
ankush-jain-akto Jul 25, 2022
851f94f
correct env file
ankush-jain-akto Jul 25, 2022
f1b5d3a
added env variable for instance type
avneesh-akto Jul 27, 2022
c784af0
Merge pull request #23 from akto-api-security/feature/instance_type_var
ankush-jain-akto Jul 27, 2022
4af0681
depends on kafka
ankush-jain-akto Jul 29, 2022
be0204e
Merge branch 'feature/segregation_2' of https://github.com/akto-api-s…
ankush-jain-akto Jul 29, 2022
154674f
add juice shop
ankush-jain-akto Aug 4, 2022
8aac175
add context analyzer details
ankush-jain-akto Aug 17, 2022
36e503b
add template for context analyser
ankush-jain-akto Aug 17, 2022
70c09db
Update docker-compose-context-analyser.yml
ankush-jain-akto Aug 18, 2022
3af9874
changed context-analyzer image to latest
avneesh-akto Aug 22, 2022
780626d
Merge pull request #24 from akto-api-security/hotfix/context-analyser…
ankush-jain-akto Aug 22, 2022
52664d2
add context analyzer
ankush-jain-akto Aug 22, 2022
0c173f7
Merge branch 'feature/segregation_2' of https://github.com/akto-api-s…
ankush-jain-akto Aug 22, 2022
807b449
increase limit to 8g
ankush-jain-akto Aug 24, 2022
18389ad
encrypt disk and use imdsv2
ankush-jain-akto Aug 27, 2022
2f7e8f3
Merge branch 'feature/segregation_2' of https://github.com/akto-api-s…
ankush-jain-akto Aug 27, 2022
8eb66f8
use string
ankush-jain-akto Aug 27, 2022
983650e
launch in non-default vpc
ankush-jain-akto Aug 27, 2022
ccd09ff
incrementally add more vpcs
ankush-jain-akto Aug 28, 2022
9258539
invoke saveCollectionsLambda for all calls
ankush-jain-akto Aug 31, 2022
a527118
invoke collection names lambda for all calls
ankush-jain-akto Aug 31, 2022
2f301ca
add region to dashboard
ankush-jain-akto Aug 31, 2022
6897c4d
set hop limit to 2
ankush-jain-akto Aug 31, 2022
50b6250
restart always
ankush-jain-akto Sep 6, 2022
10a5f1e
Increase instance size, use private subnet
ankush-jain-akto Oct 4, 2022
f08292f
Update elb-2-instances-test-setup.json
ankush-jain-akto Oct 14, 2022
8d2df5c
added 4g mem limit to runtime in dashboard
avneesh-akto Oct 21, 2022
448e9cf
Merge pull request #28 from akto-api-security/feature/mem_limit_runtime
ankush-jain-akto Oct 25, 2022
4f31fc1
add puppeteer dependencies
ayushaga14 Jan 11, 2023
fdb03fe
image modify
ayushaga14 Jan 12, 2023
f4382e6
Merge pull request #41 from akto-api-security/segregation_puppeteer_d…
ayushaga14 Jan 12, 2023
4815206
add watchtower for context-analyser and runtime machines
notshivansh Feb 27, 2023
00028ef
Merge pull request #49 from akto-api-security/feature/auto_update_doc…
ankush-jain-akto Feb 27, 2023
4e2abf6
adding watchtower in docker-compose-dashboard for gcp
shivam-rawat-akto Jul 6, 2023
9ac3355
suppress mongo logs in docker-compose-mongo.yml
shivam-rawat-akto Jul 6, 2023
9d9f4d7
changing feature in cf-deploy-akto
shivam-rawat-akto Jul 6, 2023
ac26db1
changing feature in cf-deploy-akto
shivam-rawat-akto Jul 6, 2023
c4f4c4d
reverting branch specific changes
shivam-rawat-akto Jul 12, 2023
41e9a6a
trigger cleanup in watchtower
notshivansh Aug 11, 2023
dc093df
Merge pull request #57 from akto-api-security/feature/auto_clean_imag…
aktoboy Aug 11, 2023
0716cc6
Update watchtower.env
notshivansh Sep 6, 2023
5215292
Merge pull request #59 from akto-api-security/hotfix/reduce_poll_inte…
Ark2307 Sep 6, 2023
c4d00a2
Added changes to migrate to ECR
aktoboy Sep 25, 2023
2ab5368
Updated alias
aktoboy Oct 3, 2023
cbf79cb
Merge pull request #61 from akto-api-security/feature/seg_2_migrate_t…
aktoboy Oct 3, 2023
8207687
restart always on docker process and restart docker on reboot
shivam-rawat-akto Oct 11, 2023
10d2f7a
Merge pull request #62 from akto-api-security/feature/docker_restart
aktoboy Oct 11, 2023
9a13d58
Merge branch 'feature/segregation_2' into feature/gcp_watchtower
shivam-rawat-akto Feb 12, 2024
76c29d6
Merge pull request #54 from akto-api-security/feature/gcp_watchtower
ankush-jain-akto Feb 12, 2024
f7a4172
update docker-compose version
notshivansh May 10, 2024
eae20ca
Merge pull request #71 from akto-api-security/feature/bump_docker_com…
notshivansh May 10, 2024
ee0ab50
Update docker-compose to v2.1
avneesh-akto Jun 22, 2024
347d5a6
Update docker-compose-dashboard.yml
avneesh-akto Jun 22, 2024
7bdc0ac
Update docker-compose-runtime.yml
avneesh-akto Jun 22, 2024
be22900
Update docker-compose.yml
avneesh-akto Jun 22, 2024
22f0136
Update get-docker-compose.sh
avneesh-akto Jun 22, 2024
6b5a436
Merge pull request #75 from akto-api-security/hotfix/update_compose_t…
avneesh-akto Jun 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cf-deploy-akto
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ if [ ! -d "$DOCKER_CONTEXT" ]; then
fi
else
log_step 'downloading...'
curl -L -XGET -o master.zip https://github.com/akto-api-security/infra/archive/refs/heads/feature/segregation.zip
curl -L -XGET -o master.zip https://github.com/akto-api-security/infra/archive/refs/heads/feature/segregation_2.zip
log_step 'unpacking...'
unzip master.zip
mv infra-feature-segregation infra
mv infra-feature-segregation_2 infra
fi

# NB: this is to make onprem containers to all get named the same.
cd infra
if ! command_present unzip; then
git checkout feature/segregation
git checkout feature/segregation_2
fi
DOCKER_CONTEXT="$(pwd)"

Expand Down
78 changes: 78 additions & 0 deletions docker-compose-context-analyser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
version: '2.1'

services:
zoo1:
image: confluentinc/cp-zookeeper:6.2.1
restart: always
hostname: zoo1
user: "0"
volumes:
- ./data-zoo-data:/var/lib/zookeeper/data
- ./data-zoo-logs:/var/lib/zookeeper/log
- ./data-zoo-secrets:/etc/zookeeper/secrets
container_name: zoo1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_SERVERS: zoo1:2888:3888
labels:
com.centurylinklabs.watchtower.enable: "false"

kafka1:
image: confluentinc/cp-kafka:6.2.1
restart: always
hostname: kafka1
user: "0"
ports:
- "9092:9092"
- "19092:19092"
- "29092:29092"
- "9999:9999"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_EXTERNAL_DIFFHOST://${AKTO_CURRENT_INSTANCE_IP}:9092, LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL_LOCALHOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_EXTERNAL_DIFFHOST:PLAINTEXT, LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL_LOCALHOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_CREATE_TOPICS: "akto.api.logs:3:3"
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 60000
KAFKA_LOG_RETENTION_HOURS: 5
KAFKA_LOG_SEGMENT_BYTES: 104857600
KAFKA_LOG_CLEANER_ENABLE: "true"
KAFKA_CLEANUP_POLICY: "delete"
KAFKA_LOG_RETENTION_BYTES: 10737418240
volumes:
- ./data-kafka-data:/var/lib/kafka/data
- ./data-kafka-secrets:/etc/kafka/secrets
depends_on:
- zoo1
labels:
com.centurylinklabs.watchtower.enable: "false"

akto-api-security-context-analyser:
image: public.ecr.aws/aktosecurity/akto-api-context-analyzer:latest
env_file: ./docker-context-analyser.env
mem_limit: 4g
restart: always
depends_on:
- kafka1

akto-hello-world:
image: public.ecr.aws/aktosecurity/hello-world-server:latest
restart: always
ports:
- "8000:8000"

watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file: ./watchtower.env
labels:
com.centurylinklabs.watchtower.enable: "false"
89 changes: 86 additions & 3 deletions docker-compose-dashboard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,92 @@
version: '3.3'
version: '2.1'

services:
akto-api-security-dashboard:
image: aktosecurity/akto-api-security-dashboard:latest
image: public.ecr.aws/aktosecurity/akto-api-security-dashboard:latest
env_file: ./docker-dashboard.env
restart: always
ports:
- "8080:8080"
- "8080:8080"
depends_on:
- kafka1

akto-api-security-testing:
image: public.ecr.aws/aktosecurity/akto-api-testing:latest
env_file: ./docker-dashboard.env
restart: always

zoo1:
image: confluentinc/cp-zookeeper:6.2.1
restart: always
hostname: zoo1
user: "0"
volumes:
- ./data-zoo-data:/var/lib/zookeeper/data
- ./data-zoo-logs:/var/lib/zookeeper/log
- ./data-zoo-secrets:/etc/zookeeper/secrets
container_name: zoo1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_SERVERS: zoo1:2888:3888
labels:
com.centurylinklabs.watchtower.enable: "false"

kafka1:
image: confluentinc/cp-kafka:6.2.1
restart: always
hostname: kafka1
user: "0"
ports:
- "9092:9092"
- "19092:19092"
- "29092:29092"
- "9999:9999"
environment:
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_EXTERNAL_DIFFHOST://${AKTO_KAFKA_IP}:9092, LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL_LOCALHOST://localhost:29092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_EXTERNAL_DIFFHOST:PLAINTEXT, LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL_LOCALHOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: LISTENER_DOCKER_INTERNAL
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
KAFKA_BROKER_ID: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_CREATE_TOPICS: "akto.api.logs:3:3"
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 60000
KAFKA_LOG_RETENTION_HOURS: 5
KAFKA_LOG_SEGMENT_BYTES: 104857600
KAFKA_LOG_CLEANER_ENABLE: "true"
KAFKA_CLEANUP_POLICY: "delete"
KAFKA_LOG_RETENTION_BYTES: 10737418240
volumes:
- ./data-kafka-data:/var/lib/kafka/data
- ./data-kafka-secrets:/etc/kafka/secrets
depends_on:
- zoo1
labels:
com.centurylinklabs.watchtower.enable: "false"

akto-api-security-runtime:
image: public.ecr.aws/aktosecurity/akto-api-security-runtime:latest
env_file: ./docker-dashboard.env
mem_limit: 4g
restart: always
depends_on:
- kafka1

akto-puppeteer-replay:
image: public.ecr.aws/aktosecurity/akto-puppeteer-replay:latest
ports:
- "3000:3000"
restart: always

watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file: ./watchtower.env
labels:
com.centurylinklabs.watchtower.enable: "false"
4 changes: 3 additions & 1 deletion docker-compose-mongo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
mongo:
container_name: mongo
image: mongo
restart: on-failure:10
logging:
driver: none
restart: always
volumes:
- ./data:/data/db
ports:
Expand Down
45 changes: 37 additions & 8 deletions docker-compose-runtime.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
version: '3.3'
version: '2.1'

services:
zoo1:
image: confluentinc/cp-zookeeper:6.2.1
restart: on-failure:10
restart: always
hostname: zoo1
user: "0"
volumes:
- ./data-zoo-data:/var/lib/zookeeper/data
- ./data-zoo-logs:/var/lib/zookeeper/log
- ./data-zoo-secrets:/etc/zookeeper/secrets
container_name: zoo1
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_SERVER_ID: 1
ZOOKEEPER_SERVERS: zoo1:2888:3888
labels:
com.centurylinklabs.watchtower.enable: "false"

kafka1:
image: confluentinc/cp-kafka:6.2.1
restart: on-failure:10
restart: always
hostname: kafka1
user: "appuser:appuser"
user: "0"
ports:
- "9092:9092"
- "19092:19092"
Expand All @@ -33,26 +40,48 @@ services:
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_CREATE_TOPICS: "akto.api.logs:3:3"
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 60000
KAFKA_LOG_RETENTION_HOURS: 5
KAFKA_LOG_SEGMENT_BYTES: 104857600
KAFKA_LOG_CLEANER_ENABLE: "true"
KAFKA_CLEANUP_POLICY: "delete"
KAFKA_LOG_RETENTION_BYTES: 10737418240
volumes:
- ./data-kafka-data:/var/lib/kafka/data
- ./data-kafka-secrets:/etc/kafka/secrets
depends_on:
- zoo1
labels:
com.centurylinklabs.watchtower.enable: "false"

akto-api-security-runtime:
image: aktosecurity/akto-api-security-runtime:latest
image: public.ecr.aws/aktosecurity/akto-api-security-runtime:latest
env_file: ./docker-runtime.env
mem_limit: 8g
restart: always
depends_on:
- kafka1

akto-api-security-mirror-api-logging:
image: aktosecurity/mirror-api-logging:local
image: public.ecr.aws/aktosecurity/mirror-api-logging:local
env_file: ./docker-runtime.env
mem_limit: 4g
restart: always
depends_on:
- kafka1
network_mode: host

akto-hello-world:
image: hotavneesh/hello-world-server:latest
image: public.ecr.aws/aktosecurity/hello-world-server:latest
restart: always
ports:
- "8000:8000"
- "8000:8000"

watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
env_file: ./watchtower.env
labels:
com.centurylinklabs.watchtower.enable: "false"
Loading