Skip to content

Documentdb - #9

Merged
mrqwer88 merged 10 commits into
mainfrom
documentdb
Nov 6, 2026
Merged

mrqwer88 merged 10 commits into
mainfrom
documentdb

Conversation

@mrqwer88

@mrqwer88 mrqwer88 commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Add documentDB support

Copilot AI balanced review requested due to automatic review settings November 6, 2026 14:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Missing bind-mount directories and a missing configurator completion dependency can break startup, while masked secret-read failures allow startup with an empty password.

3 open issues
What changed in this PR

Adds DocumentDB as an alternative configuration database for the FastNetMon Advanced Docker Compose deployment.

Changes:

  • Adds DocumentDB services, secret-based startup, collation configuration, and FastNetMon connection settings.
  • Adds persistent storage for DocumentDB and FastNetMon library/cache data.
  • Documents the new option and adds minimal and full-stack DocumentDB CI configurations.
File Description
volumes.yml Defines DocumentDB data and FastNetMon library/cache volumes.
services/​fastnetmon/​custom-entry.sh Adds DocumentDB-specific authentication settings.
services/​documentdb/​custom-entry.sh Loads the database password before starting DocumentDB.
scripts/​init_storage_default_dirs.sh Creates new storage directories using a shared loop.
README.md Documents the DocumentDB image version and Compose option.
docker-compose.yml Mounts FastNetMon library and cache storage.
docker-compose.documentdb.yml Defines DocumentDB, collation setup, and FastNetMon integration.
.gitignore Ignores generated library storage contents.
.github/​workflows/​ci.yml Adds DocumentDB CI coverage while retaining minimal MongoDB coverage.
.env.template Sets the default DocumentDB image version.

Review effort: Balanced

Comment thread docker-compose.documentdb.yml Resolved
Comment thread docker-compose.yml
Comment on lines +26 to +27
- fastnetmon_lib:/var/lib/fastnetmon/
- fastnetmon_cache:/var/cache/fastnetmon/
Comment thread services/documentdb/custom-entry.sh Outdated
#!/bin/sh
set -e

export PASSWORD="$(cat /run/secrets/mongo_password)"
Copilot AI balanced review requested due to automatic review settings November 6, 2026 15:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Mandatory bind mounts break fresh-checkout startup because required directories are not provisioned, while unreadable or empty DocumentDB secrets can allow startup with a public default password.

3 open issues
1 resolved since last review

Review effort: Balanced

Comment thread services/documentdb/custom-entry.sh Outdated
#!/bin/sh
set -e

export PASSWORD="$(cat /run/secrets/mongo_password)"
Copilot AI balanced review requested due to automatic review settings November 6, 2026 15:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The DocumentDB wrapper masks secret-read failures and allows empty passwords, potentially starting the database with known default administrator credentials instead of failing closed.

4 open issues

Review effort: Balanced

Comment thread README.md Resolved
Copilot AI balanced review requested due to automatic review settings November 6, 2026 15:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The directory initialization instructions in README.md:57 still contain the typo “deafult” instead of “default”.

3 open issues
1 resolved since last review

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 6, 2026 15:56
@mrqwer88
mrqwer88 merged commit 80e0755 into main Nov 6, 2026
7 of 9 checks passed
@mrqwer88
mrqwer88 deleted the documentdb branch November 6, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

An unreadable secret does not abort startup because export masks the failed read, leaving an empty password that DocumentDB may replace with its built-in default credential.

3 open issues

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants