a workaround you could do then is to encode the key:secret as base64 outside the code , maybe on your device or using an online encoder.
then you can create a secret for that base64 and use it directly without encoding inside your code.
------------------------------
Mohamad islam Hamadieh
I post SOAR content and tips on linkedIn , follow me :)
https://linkedin.com/in/mohamadislam------------------------------
Original Message:
Sent: Tue March 25, 2025 03:48 AM
From: Yongwon Song
Subject: How to use API Secret values in REST API Functions without hardcoding them
Hello, Mohamad islam Hamadieh.
Thank you for reply.
I have already tried the link you attached.
I created a secret key in app.config and then added it to the The intention is to get the secret key from the playbook and use it as the basic in the header.
However, the problem is that base64 doesn't encode the imported value, it encodes the variable name as it is.
Thank you.
------------------------------
Yongwon Song
------------------------------
Original Message:
Sent: Thu March 20, 2025 05:09 AM
From: Mohamad islam Hamadieh
Subject: How to use API Secret values in REST API Functions without hardcoding them
Hi Yongwon ,
please refer to this part of the documentation, I'm sure you can use these secrets defined here in your app configuration but not sure if you can use them in a playbook you have to test that.
------------------------------
Mohamad islam Hamadieh
I post SOAR content and tips on linkedIn , follow me :)
https://linkedin.com/in/mohamadislam