Hello, like username/password is it possible to hide tokens? This could help secure @jkat54 Webtools add-on. Thanks for your help!
Hi @splunkreal
You can write the token into passwords.conf using something like this:
curl -k -u admin https://localhost:8089/servicesNS/nobody/search/storage/passwords -d name="token:mySecureTokenName" -d password=CheckMeOutThen retrieve it with SPL and add it in the appropriate part of your search to be used in the curl command:
|rest /servicesNS/nobody/search/storage/passwords search="username=token:mySecureTokenName" | fields clear_password
| eval url="https://webhook.site/a7a88b1b-3676-47be-bf64-850ddea61898?token=".clear_password
| curl method=get urifield=url🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing