You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Week 7 — AlertDesk Containerization and Deployment. - #17
Adds AlertDesk container deployment with persistent SQLite storage, while also introducing observability, benchmarking, expanded documentation, and authentication tests.
Changes:
Adds non-root Docker and Compose deployment.
Adds request logging and benchmarking support.
Expands tests, API specifications, security guidance, and deployment documentation.
The reason will be displayed to describe this comment to others. Learn more.
Request changes
The image runs as the unprivileged app user. Compose mounts a named volume at /app/data, which is where ALERTDESK_DB defaults. docs/DEPLOYMENT.md says this release adds no column and sketches how a later migration should behave. .dockerignore keeps tests, virtualenvs, and SQLite files out of the build context.
Two gaps block the week:
The existing container-scan job already builds alertdesk/Dockerfile and fails Trivy on HIGH and CRITICAL. Its branch filter is intern/**. This PR targets interns/Evelyn-Banin, so that job does not run. Add interns/**, which is what the ConfigMaster Week 7 workflow does.
The PR says Docker was not installed, so the image and the volume have never been started. Run docker compose up --build and confirm the app user can create data/alertdesk.sqlite on a fresh volume.
This branch again includes the earlier AlertDesk weeks and does not include the Week 6 architecture commit from PR 14.
The reason will be displayed to describe this comment to others. Learn more.
The container-scan job in .github/workflows/alertdesk.yml only runs for intern/**. This PR targets interns/Evelyn-Banin, so Trivy does not run here. Add interns/** to the push and pull_request branch filters. Also run docker compose up --build once and confirm the app user can create the SQLite file on a fresh volume; the description says Docker was not available when this was written.
please could you approve GitHub Actions workflow run #90 for my AlertDesk Week 7 PR #17? It is currently awaiting maintainer approval, so the tests and container scan have not executed yet.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The API exposes ticket access on all host interfaces using publicly committed tokens, and audit events can still be overwritten via INSERT OR REPLACE despite append-only protections.
INSERT OR REPLACE with an existing audit ID can overwrite an audit event because SQLite does not fire the implicit deletion's DELETE trigger with the current connection settings. This bypasses the new append-only protection even though direct UPDATE and DELETE operations are blocked. Add a BEFORE INSERT trigger that rejects existing audit IDs so replacement is blocked without relying on each writer's connection settings.
This file contains hidden or 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
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.
Completed the Week 7 AlertDesk containerization and deployment work.
This PR includes:
Tests:
Note: