Skip to content

Commit

Permalink
🐛 FIX: sensitive data
Browse files Browse the repository at this point in the history
  • Loading branch information
unl0ck committed Dec 26, 2024
1 parent beea236 commit a6f8e18
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .bumpversion-edge.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.bumpversion]
current_version = "2.11.30"
current_version = "2.11.31"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 2.11.30
## 2.11.31

### 🚀 Added

Expand Down
2 changes: 2 additions & 0 deletions GridboxConnectorAddon-edge/GridboxConnector/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
logfire.configure()
logfire.instrument_requests()
logger.addHandler(logfire.LogfireLoggingHandler())
else:
logger.warning(f"Logfire not configured [token: {logfire_token}, enable_telemetry: {enable_telemetry}]")
except Exception as e:
logger.error(f"Error configuring logfire: {e}")

Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/GridboxConnector/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def filter(self, record):
# Versuche die Nachricht als Python-Dictionary zu parsen
message_dict = ast.literal_eval(message)
# Sensible Daten filtern, falls vorhanden
sensitive_keys = ['username', 'password', 'id_token', 'access_token', 'client_id']
sensitive_keys = ['username', 'password', 'id_token', 'access_token', 'client_id', 'token']
for key in sensitive_keys:
if key in message_dict:
message_dict[key] = '***'
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.30",
"version": "2.11.31",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
---
name: Viessmann Gridbox Connector (edge)
version: "2.11.30"
version: "2.11.31"
slug: "gridbox_connector_edge"
description: "Viessmann Gridbox Connector (edge)"
url: "https://github.com/unl0ck/homeassistant-addon-viessmann-gridbox/tree/main/GridboxConnectorAddon-edge"
Expand Down
2 changes: 1 addition & 1 deletion GridboxConnectorAddon-edge/rootfs/share/cloudSettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.11.30",
"version": "2.11.31",
"urls": {
"login": "https://gridx.eu.auth0.com/oauth/token",
"gateways": "https://api.gridx.de/gateways",
Expand Down

0 comments on commit a6f8e18

Please sign in to comment.