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
In Api.get_bamsec() (app/api.py:173), the opt-out guard reads getattr(self._app, "config", {}).get("news", {}). On the real App instance (app/main.py:56), configuration is stored on self.cfg (Config), not self.config. getattr always returns {}, causing bamsec_enabled to default to True even when disabled by the user.
Open Settings -> General, uncheck Enable BamSEC Filings, and click Save Settings.
Call GET /api/bamsec?ticker=AAPL.
Observe the backend still makes outbound HTTP requests to bamsec.com and returns live filings instead of {"disabled": true}.
Expected Behavior
Api.get_bamsec() should read self._app.cfg.get().get("news", {}) (with safe fallback) and immediately return {"disabled": True, "total": 0, ...} when bamsec_enabled is False.
Operating System & Version
OS: Windows 11 x64 / macOS arm64 / Linux x86_64
Version: v2.12.0
Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite
Logs & Additional Context
Live CDP test with bamsec_enabled=false returned {'disabled': False, 'ticker': 'AAPL', 'total': 42}.
Summary of Changes: Updated Api.get_bamsec() in app/api.py to read self._app.cfg.get() instead of non-existent self._app.config. Verified via unit tests and live Chrome CDP (/api/bamsec returns disabled: true, total: 0 when disabled).
Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.
This issue will automatically close upon PR #82 review and merge into main.
Activity
mlgitdev commentedon Dec 2, 2026
🚀 Resolution In Progress
A fix for this issue has been implemented and submitted in Pull Request #82 (
v2.12.1).fix/audit-remediation-67Api.get_bamsec()inapp/api.pyto readself._app.cfg.get()instead of non-existentself._app.config. Verified via unit tests and live Chrome CDP (/api/bamsecreturnsdisabled: true, total: 0when disabled).compileallclean, 84/84 unit tests passing (includingtests/test_audit_fixes.py), and live Chrome CDP verification passed.This issue will automatically close upon PR #82 review and merge into
main.github-actions commentedon Dec 2, 2026
✅ Issue Validation Passed
fix(bamsec))This issue is well-structured and ready for work according to the Issue-First Protocol.