#Harvest credentials script
1 messages · Page 1 of 1 (latest)
We want harvest to get both username and password from credentials script at runtime. The doc mentions that addr and username are inputs to credentials_script but the example does not container use...
@scarlet condor Currently, the credentials_script only returns the password and expects username and addr as inputs. Could you explain your use case for the script returning both username and password? Also, what would be the input for the script? Would it be addr?
https://netapp.github.io/harvest/24.02/configure-harvest-basic/#credentials-script
Hi @wanton axle , I work with @scarlet condor on this. Our use case is during secret rotation and we are adopting an industry wide standard of using 2 usernames and passwords.
@upper oak Thank you. Could you please open a feature request on Git for this? We will need to add this support.
So input to script will remain same username, addr but in script output it can return username and password where this returned username will be used rather than the one defined in harvest config?
Yes, will do that. Thanks
Thanks a lot @wanton axle for this https://github.com/NetApp/harvest/pull/2870 in such a short time. Really appreciate it. 😀