-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actualize demo #9
Open
Zhaars
wants to merge
1
commit into
master
Choose a base branch
from
zhars/actualize_censor_demo
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,2 +1,2 @@ | ||
ignore_parse_error: true | ||
version: 0.85.0 | ||
version: 0.95.0 |
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,5 +1,5 @@ | ||
ignore_parse_error: true | ||
version: 0.85.0 | ||
version: 0.95.0 | ||
handlers: | ||
- handler: query_ignore | ||
queries: | ||
|
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,5 +1,5 @@ | ||
ignore_parse_error: true | ||
version: 0.85.0 | ||
version: 0.95.0 | ||
handlers: | ||
- handler: deny | ||
queries: | ||
|
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 @@ | ||
ignore_parse_error: true | ||
version: 0.85.0 | ||
version: 0.95.0 | ||
handlers: | ||
- handler: denyall |
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,2 +1,2 @@ | ||
ignore_parse_error: true | ||
version: 0.85.0 | ||
version: 0.95.0 |
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 |
---|---|---|
@@ -1,138 +1,77 @@ | ||
version: "3" | ||
|
||
services: | ||
# Create keys: | ||
# - ./.acrakeys/acra-server/${ACRA_CLIENT_ID}_server | ||
# - ./.acrakeys/acra-connector/${ACRA_CLIENT_ID}_server.pub | ||
acra-keymaker_server: | ||
# You can specify docker image tag in the environment | ||
# variable ACRA_DOCKER_IMAGE_TAG or run by default with 'latest' images | ||
image: "cossacklabs/acra-keymaker:${ACRA_DOCKER_IMAGE_TAG:-latest}" | ||
environment: | ||
# INSECURE!!! You MUST define your own ACRA_MASTER_KEY | ||
# The default is only for testing purposes | ||
ACRA_MASTER_KEY: ${ACRA_MASTER_KEY:-UHZ3VUNNeTJ0SEFhbWVjNkt4eDdVYkc2WnNpUTlYa0E=} | ||
volumes: | ||
# Mount the whole ./.acrakeys directory to be able generate keys and | ||
# place them in services' subdirectories | ||
- ./.acrakeys:/keys | ||
# Please specify ACRA_CLIENT_ID environment variable, otherwise run with | ||
# default 'testclientid' client id | ||
command: >- | ||
--client_id=${ACRA_CLIENT_ID:-testclientid} | ||
--generate_acraserver_keys | ||
--keys_output_dir=/keys/acra-server | ||
--keys_public_output_dir=/keys/acra-connector | ||
# Create keys: | ||
# - ./.acrakeys/acra-connector/${ACRA_CLIENT_ID} | ||
# - ./.acrakeys/acra-server/${ACRA_CLIENT_ID}.pub | ||
acra-keymaker_connector: | ||
image: "cossacklabs/acra-keymaker:${ACRA_DOCKER_IMAGE_TAG:-latest}" | ||
environment: | ||
ACRA_MASTER_KEY: ${ACRA_MASTER_KEY:-UHZ3VUNNeTJ0SEFhbWVjNkt4eDdVYkc2WnNpUTlYa0E=} | ||
volumes: | ||
- ./.acrakeys:/keys | ||
command: >- | ||
--client_id=${ACRA_CLIENT_ID:-testclientid} | ||
--generate_acraconnector_keys | ||
--keys_output_dir=/keys/acra-connector | ||
--keys_public_output_dir=/keys/acra-server | ||
|
||
|
||
#===== Acra ================================================================ | ||
|
||
acra-server: | ||
image: "cossacklabs/acra-server:${ACRA_DOCKER_IMAGE_TAG:-latest}" | ||
image: "cossacklabs/acra-server:${ACRA_DOCKER_IMAGE_TAG:-0.95.0}" | ||
# Restart server after correct termination, for example after the config | ||
# was changed through the API | ||
restart: always | ||
depends_on: | ||
- acra-keymaker_server | ||
- acra-keymaker_connector | ||
networks: | ||
- acraconnector-acraserver | ||
- mutillidae-acraserver | ||
- acraserver-db | ||
environment: | ||
ACRA_MASTER_KEY: ${ACRA_MASTER_KEY:-UHZ3VUNNeTJ0SEFhbWVjNkt4eDdVYkc2WnNpUTlYa0E=} | ||
volumes: | ||
# Mount the directory with only the keys for this service. Must be | ||
# rewriteable in case of using API, otherwise should be read-only. | ||
- ./.acrakeys/acra-server:/keys | ||
# Directory with configuration, rewriteable | ||
- ./.acraconfigs/acra-server:/config | ||
command: >- | ||
--mysql_enable | ||
--db_host=mutillidae | ||
--db_host=database | ||
--db_port=3306 | ||
--keys_dir=/keys | ||
--auth_keys=/keys/httpauth.accounts | ||
--http_api_enable | ||
--incoming_connection_api_string=tcp://0.0.0.0:9090 | ||
--keystore_cache_on_start_enable=false | ||
--acracensor_config_file=/config/acra-censor.yaml | ||
-v | ||
--v | ||
--d | ||
|
||
#===== OWASP Mutillidae II ================================================= | ||
|
||
acra-connector: | ||
image: "cossacklabs/acra-connector:${ACRA_DOCKER_IMAGE_TAG:-latest}" | ||
restart: always | ||
mutillidae: | ||
container_name: mutillidae | ||
depends_on: | ||
- acra-keymaker_server | ||
- acra-keymaker_connector | ||
- database | ||
- acra-server | ||
# Open the port outside for client application | ||
image: mutillidae | ||
build: | ||
context: https://github.com/webpwnized/mutillidae-docker.git#1.0.39:www | ||
args: | ||
DATABASE_HOST: acra-server | ||
DATABASE_PORT: 9393 | ||
ports: | ||
- "3306:3306" | ||
- 127.0.0.1:8080:80 | ||
networks: | ||
- acraconnector-acraserver | ||
- mutillidae-acraconnector | ||
environment: | ||
ACRA_MASTER_KEY: ${ACRA_MASTER_KEY:-UHZ3VUNNeTJ0SEFhbWVjNkt4eDdVYkc2WnNpUTlYa0E=} | ||
volumes: | ||
# Mount the directory with only the keys for this service | ||
- ./.acrakeys/acra-connector:/keys:ro | ||
command: >- | ||
--acraserver_connection_host=acra-server | ||
--keys_dir=/keys | ||
--client_id=${ACRA_CLIENT_ID:-testclientid} | ||
--incoming_connection_string=tcp://0.0.0.0:3306 | ||
--http_api_enable | ||
--incoming_connection_api_string=tcp://0.0.0.0:9191 | ||
-v | ||
|
||
|
||
#===== OWASP Mutillidae II ================================================= | ||
|
||
edoz90_mutillidae: | ||
# Build base image | ||
build: | ||
context: https://github.com/storojs72/docker-mutillidae.git | ||
image: storojs72/edoz90_mutillidae:latest | ||
# We don't need to run the container based on the original image | ||
entrypoint: /bin/true | ||
restart: 'no' | ||
- world | ||
- mutillidae-acraserver | ||
|
||
#===== OWASP Mutillidae DB ================================================= | ||
|
||
mutillidae: | ||
depends_on: | ||
- acra-connector | ||
- edoz90_mutillidae | ||
database: | ||
container_name: database | ||
image: webpwnized/mutillidae:database | ||
healthcheck: | ||
test: "/usr/bin/mysql --user=root --password=mutillidae --execute \"SHOW DATABASES;\"" | ||
interval: 5s | ||
timeout: 30s | ||
retries: 10 | ||
build: | ||
context: ./mutillidae | ||
image: mutillidae:latest | ||
ports: | ||
- "8080:80" | ||
- "3306:3306" | ||
context: https://github.com/webpwnized/mutillidae-docker.git#1.0.39:database | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we really need this context? looks like it's empty folder with only dockerfile |
||
networks: | ||
- world | ||
- mutillidae-acraconnector | ||
- acraserver-db | ||
|
||
healthcheck-wait: | ||
image: busybox | ||
container_name: healthcheck-wait | ||
depends_on: | ||
database: | ||
condition: service_healthy | ||
|
||
networks: | ||
world: | ||
acraserver-db: | ||
internal: true | ||
acraconnector-acraserver: | ||
mutillidae-acraserver: | ||
internal: true | ||
mutillidae-acraconnector: | ||
mutillidae-db: | ||
internal: true |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, didn't know that it can work with web resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same for www