refactor: enhance JWT authentication and CORS configuration

Updated JWT authentication to use configuration values instead of hardcoded secrets, improving security and flexibility. Enhanced CORS policy to conditionally allow origins based on configuration settings, with logging for permissive defaults. Updated README to reflect project renaming and clarify service context.
This commit is contained in:
Oleksandr Bezdieniezhnykh
2026-05-14 19:48:25 +03:00
parent 2fe394d732
commit 7025f4d075
74 changed files with 8494 additions and 19 deletions
+67
View File
@@ -0,0 +1,67 @@
{
"current_step": "complete",
"completed_steps": [
"discovery",
"module-analysis",
"component-assembly",
"module-layout",
"system-synthesis",
"verification",
"glossary-vision",
"solution-extraction",
"problem-extraction",
"final-report"
],
"focus_dir": null,
"modules_total": 12,
"modules_documented": [
"enums", "dtos", "entities", "auth", "middleware",
"database", "service_vehicle", "service_mission", "service_waypoint",
"controller_vehicles", "controller_missions", "program"
],
"modules_remaining": [],
"module_batch": 3,
"components_written": [
"01_vehicle_catalog",
"02_mission_planning",
"04_persistence",
"05_identity",
"06_http_conventions",
"07_host"
],
"decomposition_revised": [
{
"trigger": "user feedback after suite-context review (2026-05-13)",
"old_components": ["01_host", "02_auth", "03_web_infrastructure", "04_persistence", "05_aircraft", "06_flight"],
"new_components_alignment": "matches ../suite/_docs/02_flights.md feature sections (Aircrafts / Flights / GPS-Denied)",
"spec_code_divergences_logged_in_discovery": 11
},
{
"trigger": "user-requested architectural refactor (2026-05-14): rename flights -> missions, drop GPS-Denied, add UGV + GuidedMissile vehicle types",
"old_components": ["01_aircraft_catalog", "02_mission_planning", "03_gps_denied", "04_persistence", "05_identity", "06_http_conventions", "07_host"],
"new_components_alignment": "matches ../suite/_docs/02_missions.md (renamed from 02_flights.md); GPS-Denied moved to a separate gps-denied service per ../suite/_docs/11_gps_denied.md; vehicle catalog now spans Plane / Copter / UGV / GuidedMissile",
"renames_doc_only_until_jira_lands": true,
"jira_epic": "AZ-EPIC (rename flights -> missions; multi-vehicle; drop GPS-Denied)",
"jira_children_in_plan": ["B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12"]
}
],
"step_4_5_glossary_vision": "confirmed",
"step_4_5_artifacts": [
"_docs/02_document/glossary.md",
"_docs/02_document/architecture.md (## Architecture Vision section)"
],
"step_5_solution_artifact": "_docs/01_solution/solution.md",
"step_6_problem_artifacts": [
"_docs/00_problem/problem.md",
"_docs/00_problem/restrictions.md",
"_docs/00_problem/acceptance_criteria.md",
"_docs/00_problem/input_data/data_parameters.md",
"_docs/00_problem/security_approach.md"
],
"step_7_final_report": "_docs/02_document/FINAL_report.md",
"rename_status": "doc-only; code/DB/HTTP/repo refactor pending B-tickets",
"verification_log": "_docs/02_document/04_verification_log.md",
"verification_corrections_inline": 9,
"verification_drift_flagged": 2,
"last_updated": "2026-05-14T09:32:00Z"
}