netascode / BRKDCN-2673-Demo

Cisco Live US 2024 BRKDCN-2673 Demo
0 stars 2 forks source link

Password is displayed in the log #5

Open pehruby opened 1 year ago

pehruby commented 1 year ago

When login is unsuccesful the password is diplayed in log/traceback as a part of aaaLogin.json body.

File  /mnt/d/pehruby/Documents/Programovani/gssnet-aci-germany-qual/tests/results/aci/apic_common.resource:13
      POST On Session    APIC_login    /api/aaaLogin.json    data=${login_json}
      |  data=${login_json} = data={"aaaUser" : {"attributes" : {"name" : "apic:LOCAL_LDN\\cicdtest", "pwd" : "Password"}}} (str)

Is there a way how to deal with this?

danischm commented 1 year ago

Within the Get APIC Token keyword in apic_common.resource, you could use Set Log Level NONE to disable logging and then later re-enable logging.

pehruby commented 1 year ago

It seems to me this affects content of log.html file only but not the console output where the traceback is still displayed.