Commit Graph

189 Commits

Author SHA1 Message Date
Christian Krakau-Louis c144fc7a86 Merge pull request #71 from christianlouis/copilot/debug-content-security-policy-error
Fix CSP violation: self-host chart.js to eliminate CDN connect-src breach
2026-03-30 00:27:26 +02:00
Christian Krakau-Louis 8665e39ff4 Merge pull request #70 from christianlouis/copilot/fix-internal-server-error
Fix 500 on GET /api/v1/domains/{domain}/sources: wrong record keys in ReportStore
2026-03-30 00:26:51 +02:00
Christian Krakau-Louis 506346537c Merge pull request #67 from christianlouis/copilot/add-gmail-api-mail-source
feat: add Gmail API & main.py helper tests; fix flake8 lint errors
2026-03-30 00:26:28 +02:00
copilot-swe-agent[bot] 1455db9298 Fix CSP violation: self-host chart.js instead of loading from CDN
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/11546dac-cb66-4028-95d6-420763b626e4

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 22:18:38 +00:00
copilot-swe-agent[bot] cd1f82aa79 Fix 500 error in GET /domains/{domain}/sources: use spf_result/dkim_result not spf/dkim
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/59552cb2-df2b-43dd-a22c-bd699a458afb

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 22:17:05 +00:00
copilot-swe-agent[bot] 56fe1db857 Initial plan 2026-03-29 22:14:37 +00:00
copilot-swe-agent[bot] 584a73d44d Initial plan 2026-03-29 22:14:03 +00:00
copilot-swe-agent[bot] 70c6a70af3 fix: remove unused DMARC_GMAIL_QUERY import and fix trailing blank line/unused variable in test_gmail_client.py
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/21ea643d-3111-45d7-b66b-d90967ced313

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 22:14:01 +00:00
copilot-swe-agent[bot] 69c3bac480 feat: add GmailClient unit tests and main.py helper tests to meet coverage target
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/77ac3e98-81fa-45fa-9cc2-481896ffb48e

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 22:08:38 +00:00
copilot-swe-agent[bot] 2d364509bd fix: resolve remaining CodeQL alerts and raise mail_sources coverage to 100%
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/adfb364c-2feb-44fa-b9dd-73b9bdb7fa8f

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 21:39:00 +00:00
copilot-swe-agent[bot] dbbf539182 fix: resolve CodeQL security alerts – log injection, info exposure, incomplete URL checks
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/093a5de2-644b-434d-8ce8-529710ecb40b

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 21:14:02 +00:00
Christian Krakau-Louis 962aec5bc3 Merge pull request #68 from christianlouis/copilot/fix-production-tailwindcss-warning
Fix 500 errors on domain reports/sources endpoints + add Codecov patch coverage
2026-03-29 23:12:18 +02:00
copilot-swe-agent[bot] 204131ee2a Add tests for domain reports and sources endpoints (fix Codecov patch coverage)
- test_get_domain_reports_returns_200: basic 200 success path
- test_get_domain_reports_policy_dict_extracted: policy{"p":...} → "reject"
- test_get_domain_reports_policy_string_preserved: string policy unchanged
- test_get_domain_reports_timestamps_are_integers: begin/end_timestamp used
- test_get_domain_reports_unknown_domain_returns_404: 404 guard
- test_get_domain_sources_returns_200: sources returned correctly
- test_get_domain_sources_days_param_accepted: 'days' kwarg no TypeError
- test_get_domain_sources_unknown_domain_returns_404: 404 guard

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/a6f52c82-f239-4910-ac08-50702c154f93

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 21:10:06 +00:00
copilot-swe-agent[bot] 11daa15335 Fix domain reports and sources API 500 errors
- Use begin_timestamp/end_timestamp (Unix ints) instead of begin_date/end_date
  (ISO strings) when building ReportEntry, fixing Pydantic int_parsing errors
- Extract policy string from dict (policy["p"]) when the stored value is a dict,
  fixing Pydantic string_type validation error
- Rename _days -> days in ReportStore.get_domain_sources() so the endpoint's
  `days=days` keyword call no longer raises TypeError

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/15ac3521-e81f-42fa-81a2-f6804a423e1d

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 20:03:43 +00:00
copilot-swe-agent[bot] 8e051ac74d Initial plan 2026-03-29 20:00:25 +00:00
copilot-swe-agent[bot] 0c05ded74f fix: resolve flake8 C901/F401 errors in main.py, gmail_client.py, test_mail_sources.py
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/38868887-87b6-4032-8713-e90e56ae3318

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:50:50 +00:00
semantic-release f3ad1fadaf chore(release): v1.4.2 2026-03-29 19:48:15 +00:00
Christian Krakau-Louis dadfd4ae3c Merge pull request #66 from christianlouis/copilot/fix-internal-server-error
style: fix isort and flake8 lint failures in main.py
2026-03-29 21:47:23 +02:00
copilot-swe-agent[bot] c48050ea04 style: suppress F811 on app = create_app() in main.py
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/88ca66b3-326b-4d37-8f4e-ae6f1f18c324

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:44:40 +00:00
Christian Krakau-Louis e033e11e34 Merge branch 'main' into copilot/add-gmail-api-mail-source 2026-03-29 21:44:05 +02:00
semantic-release 27b74d26a6 chore(release): v1.4.1 2026-03-29 19:43:16 +00:00
Christian Krakau-Louis 7f3c908f71 Merge pull request #65 from christianlouis/copilot/implement-database-backed-key-storage
fix: resolve SQLAlchemy mapper error and add CI auto-format step
2026-03-29 21:42:24 +02:00
copilot-swe-agent[bot] 5a753ef3cf style: fix import ordering in main.py to satisfy isort
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/ebb5eb3f-a4d4-4834-a144-9bd81b6c7ada

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:40:06 +00:00
copilot-swe-agent[bot] 551d604b8f fix: address code review - clarify plaintext note, fix misleading template ternary
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/0c63851e-a69a-4a76-8dd8-25618e825b8c

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:37:10 +00:00
copilot-swe-agent[bot] 874bc9110a fix: shorten User import comment and add auto-format step to CI
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/45434d6e-ae81-49d9-ba7e-0fd50f683ce4

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:34:21 +00:00
copilot-swe-agent[bot] 6bae2f8146 chore: remove accidental pip install artifact files
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/0c63851e-a69a-4a76-8dd8-25618e825b8c

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:34:17 +00:00
copilot-swe-agent[bot] 25b3567414 feat: implement Gmail API mail source with OAuth2, ingestion tracking, and UI
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/0c63851e-a69a-4a76-8dd8-25618e825b8c

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:34:03 +00:00
copilot-swe-agent[bot] 4b2b904421 fix: import all SQLAlchemy models in main.py to prevent mapper initialization error
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/de847912-dc10-4124-9de5-61d4ea53a53e

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:28:53 +00:00
copilot-swe-agent[bot] f0c62ea95d fix: import User model in main.py to resolve SQLAlchemy mapper initialization error
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/c771e0e6-8cd2-447f-9a51-1b609ef14707

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:24:05 +00:00
copilot-swe-agent[bot] 2d32830270 Initial plan 2026-03-29 19:23:33 +00:00
copilot-swe-agent[bot] fb82643747 Initial plan 2026-03-29 19:21:53 +00:00
copilot-swe-agent[bot] 5edfac0397 Initial plan 2026-03-29 19:20:52 +00:00
semantic-release 6eeda1c5bd chore(release): v1.4.0 2026-03-29 19:18:18 +00:00
Christian Krakau-Louis 298ca938ec Merge pull request #62 from christianlouis/copilot/check-dns-data-in-dashboard
fix: repair corrupted dns_resolver.py to pass black --check (py310 target)
2026-03-29 21:17:25 +02:00
Christian Krakau-Louis 0bdd789944 Merge pull request #61 from christianlouis/copilot/debug-mail-sources-500-error
fix: GET /mail-sources 500 — unhashable type: 'dict' in Jinja2 template cache
2026-03-29 21:16:47 +02:00
Christian Krakau-Louis af457e4e48 Merge pull request #60 from christianlouis/copilot/handle-report-management
Fix Black formatting in report_store.py
2026-03-29 21:09:09 +02:00
copilot-swe-agent[bot] 2247115a7e test: add coverage for mail_sources_page TemplateResponse fix
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/bf182279-fe6a-4efc-87a5-5eaefabd2e3a

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:07:57 +00:00
copilot-swe-agent[bot] 087c2b375b fix: remove stray fragments and duplicate _sanitize_for_log definitions in dns_resolver.py
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/8ad92992-343e-4e81-a830-cd83efcb2437

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 19:06:36 +00:00
semantic-release 8480b18b95 chore(release): v1.3.1 2026-03-29 19:00:04 +00:00
Christian Krakau-Louis a77a89f475 Potential fix for code scanning alert no. 120: Log Injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-29 21:00:04 +02:00
Christian Krakau-Louis 8d5b713bf1 Potential fix for code scanning alert no. 119: Log Injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-29 20:59:52 +02:00
Christian Krakau-Louis 23d5377a50 Potential fix for code scanning alert no. 118: Log Injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-03-29 20:59:39 +02:00
Christian Krakau-Louis 76e5e4d8f7 Merge pull request #64 from christianlouis/copilot/check-data-persistence
fix: ensure data persistence across container reinstallations
2026-03-29 20:59:12 +02:00
copilot-swe-agent[bot] 6294e4c935 Fix black formatting in report_store.py
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/f917b2ae-df6c-4852-b3e1-4c7ea8f68996

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 18:58:07 +00:00
copilot-swe-agent[bot] a04006f75b fix: address code review — narrow exception types, computed dkimLiveText getter
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/19d17518-732d-4644-889b-cc63256e19b1

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 18:56:08 +00:00
Christian Krakau-Louis 1c94844602 Merge pull request #63 from christianlouis/copilot/fix-domain-detail-errors
Fix domain detail page: quote domain_id in Alpine.js x-data attribute
2026-03-29 20:55:19 +02:00
copilot-swe-agent[bot] 0d1a4fdac3 feat: real DNS lookups, manual DKIM selectors, Cloudflare-ready DNS provider architecture
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/19d17518-732d-4644-889b-cc63256e19b1

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 18:53:35 +00:00
copilot-swe-agent[bot] 423c596c28 fix: ensure data persistence across reinstallations
- Add entrypoint.sh: creates /app/data, stamps legacy DBs, runs alembic upgrade head
- Update Dockerfile to use new entrypoint and pre-create /app/data
- Change default DATABASE_URL to sqlite:///./data/dmarq.db
- Add _ensure_sqlite_dir() to database.py for automatic directory creation
- Update docker-compose.yml with app_data named volume for /app/data
- Add 6 tests for _ensure_sqlite_dir and updated default URL

Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/2bac317b-97a2-450b-84f1-3e316f7ef54c

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 18:53:00 +00:00
copilot-swe-agent[bot] 7c471b2800 Initial plan 2026-03-29 18:45:20 +00:00
copilot-swe-agent[bot] dd9aeb0aac Fix domain detail page: quote domain_id in Alpine.js x-data attribute
Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/e56426a2-da63-4f8a-95cc-e05972be9e51

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-03-29 18:44:33 +00:00