Skip to content
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 #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ So we just downloaded all the content of the table. If we were attackers, we’d
Now we will add poison record to the table to detect an attack. Get the value of poison record data from the logs of exited `acra-poisonrecordmaker` container and then insert it into a table:

```bash
docker logs acra-poison-records-demo-acra-poisonrecordmaker-1
docker logs acra-poison-records-demo_acra-poisonrecordmaker_1
```

If no errors, you should see base64 encoded value of poison record, it looks like encrypted data that we already have in the database (or like garbage):
Expand Down
4 changes: 1 addition & 3 deletions acra/configs/acra-server.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
version: 0.92.0
version: 0.95.0

client_id: poison_records_demo

db_host: postgresql

db_port: 5432
2 changes: 1 addition & 1 deletion acra/configs/encryptor_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.92.0
version: 0.95.0
schemas:
- table: test_table
columns:
Expand Down
8 changes: 4 additions & 4 deletions docker-infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
# Postgresql container
services:
postgresql:
image: postgres:11
image: postgres:12
# INSECURE!!! You MUST define your own DB name and credentials
environment:
# Admin user
Expand All @@ -21,7 +21,7 @@ services:
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:-0.92.0}"
image: "cossacklabs/acra-keymaker:${ACRA_DOCKER_IMAGE_TAG:-0.95.0}"
environment:
# INSECURE!!! You MUST define your own ACRA_MASTER_KEY
# The default is only for testing purposes
Expand All @@ -43,7 +43,7 @@ services:
acra-poisonrecordmaker:
# You can specify docker image tag in the environment
# variable ACRA_DOCKER_IMAGE_TAG or run by default with 'latest' images
image: "cossacklabs/acra-server:${ACRA_DOCKER_IMAGE_TAG:-0.92.0}"
image: "cossacklabs/acra-server:${ACRA_DOCKER_IMAGE_TAG:-0.95.0}"
environment:
# INSECURE!!! You MUST define your own ACRA_MASTER_KEY
# The default is only for testing purposes
Expand All @@ -59,7 +59,7 @@ services:

# Run AcraServer
acra-server:
image: "cossacklabs/acra-server:${ACRA_DOCKER_IMAGE_TAG:-0.92.0}"
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
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module acra-poison-records-demo

go 1.17
go 1.21.0

require github.com/lib/pq v1.10.4 // direct