evcc icon indicating copy to clipboard operation
evcc copied to clipboard

evcc config shows E3/DC config rscp key as clear text

Open universal-dilettant opened this issue 1 year ago • 4 comments

Describe the bug

$ evcc config is supposed to deliver the run configuration with credentials / passwords / etc anonymized as *****. With an E3DC device configured, this works fine for user / Password / etc. However, the rscp key is clear text 111111 - not the real one, anonymized manually for this issue.

Steps to reproduce

  1. evcc config with E3/DC device in the configuration

...

Configuration details

...
meter
---
db:3 {Type:template Title: Icon: Product:E3/DC} map[host:192.168.0.204 key:111111 maxacpower:0 password:***** port:5033 template:e3dc-rscp usage:grid user:*****]
db:4 {Type:template Title:Batterie Icon: Product:E3/DC} map[capacity:11.7 host:192.168.0.204 key:111111 maxacpower:0 password:***** port:5033 template:e3dc-rscp usage:battery user:*****]
db:6 {Type:template Title:PV2 Icon: Product:Hoymiles HM & HMS Series (via OpenDTU)} map[host:192.168.0.229 template:hoymiles-opendtu usage:pv]
db:9 {Type:template Title:PV1 S3 Icon: Product:Huawei SUN2000} map[forceaccharging:false host:192.168.0.206 id:0 maxacpower:0 maxchargepower:10000 modbus:tcpip port:6607 storageunit:1 template:huawei-sun2000 timeout:3e+10 usage:pv]
db:10 {Type:custom Title:PV1 Icon: Product:} map[yaml:## required attributes

Log details

nothing to be shown

What type of operating system or environment does evcc run on?

Docker container

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

evcc version 0.207.6 (bf6721d3)

universal-dilettant avatar Sep 11 '25 13:09 universal-dilettant

Is that an issue, being a local credential?

andig avatar Sep 12 '25 10:09 andig

Credential remains credentials, local or not, right?

universal-dilettant avatar Sep 12 '25 11:09 universal-dilettant

Feel free to propose a fix. This is not an urgent concern.

andig avatar Sep 12 '25 11:09 andig

See https://github.com/evcc-io/evcc/issues/23545 for the general case

andig avatar Sep 12 '25 11:09 andig