mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-04-04 21:30:07 +02:00
Mask WeatherApiKey in log output
Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com>
This commit is contained in:
@@ -198,7 +198,7 @@ bashio::log.info "Settings.yaml generated at ${SETTINGS_FILE}"
|
||||
|
||||
# Log contents (mask sensitive values)
|
||||
bashio::log.info "--- Generated Settings.yaml ---"
|
||||
sed -E 's/(ApiKey:).*/\1 *****/;s/(AuthenticationSecret:).*/\1 *****/' "${SETTINGS_FILE}" | while IFS= read -r line; do
|
||||
sed -E 's/(ApiKey:).*/\1 *****/;s/(AuthenticationSecret:).*/\1 *****/;s/(WeatherApiKey:).*/\1 *****/' "${SETTINGS_FILE}" | while IFS= read -r line; do
|
||||
bashio::log.info "$line"
|
||||
done
|
||||
bashio::log.info "-------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user