--- title: "[bojemoi] refactor(alert-agent): consolider sur anthropic_api_key (secret canonique)" date: 2026-07-21T20:48:28+02:00 draft: false tags: ["commit", "bojemoi", "main"] categories: ["Git Activity"] summary: "Commit b31c4f4 par grafana-watcher dans bojemoi" author: "grafana-watcher" --- ## Commit `b31c4f4` | | | |---|---| | **Repository** | bojemoi | | **Branch** | `main` | | **Author** | grafana-watcher | | **Hash** | `b31c4f4e052e22e3267e68820ee0cabcbfa93f2f` | ### Description - config.py: _build_settings() avec model_copy() pour appliquer les secrets après init pydantic (fix: assignation self.x = y ignorée par pydantic v2) - Lecture anthropic_api_key en priorité, claude_api_key en fallback - Stack: claude_api_key → anthropic_api_key - Secret claude_api_key supprimé Co-Authored-By: Claude Sonnet 4.6 ### Files Changed ``` M alert-agent/alert_agent/config.py M stack/48-service-alert-agent.yml ``` ### Diff Summary ``` alert-agent/alert_agent/config.py | 52 +++++++++++++++++++++++---------------- stack/48-service-alert-agent.yml | 4 +-- 2 files changed, 33 insertions(+), 23 deletions(-) ```