#How to store credentials securely?

1 messages · Page 1 of 1 (latest)

novel panther
#

Hey devs,

I am using Appsmith Cloud and was pleased to discover that we can now integrate the AWS SDK and utilize it within Appsmith. I want to send messages to a queue via SQS, but the AWS SDK requires credentials, namely the AccessKey and SecretAccessKey, which are stored in the AWS config object. I am concerned about how to securely store these credentials on Appsmith, as storing them in plain text is not a viable option.

Do you have any recommendations on how to handle this securely?

pine ruinBOT
#

Hey There,

We've registered your query, and our team will get back to you soon.

Regards,
Team Appsmith

flat notch
#

I am not sure if I understand your use case.

But here are two functions to encrypt/decrypt the keys into a scrambled password protected string, using the forge js library that comes installed by default in Appsmith:


flat notch
#

Since it is not possible to post code here without it breaking I attatched a file with the code.

#

That is better!

#

credit: ChatGPT after some deliberation between the two of us. 🤪

novel panther
#

Hey kanintesova.
Thanks a lot for the reply. If I understand correctly, I still need to store the password for decryption somewhere. Which would lead me to the same initial question. Do we have any option to use environment variables when using cloud? Can we access AWS parameter store / secrets manager somehow?

flat notch
#

Hi, my guess was that this might be the case. Just want to say I am not one of the developers. Hope they can provide you with some answers to clear things up.

pine ruinBOT
#

Please help us with the following information for faster debugging.

Which version of Appsmith are you on?
Add details about your use case.

quasi elk
pine ruinBOT
#

@novel panther Gentle reminder.

novel panther
pine ruinBOT
#

@novel panther Are you still facing this issue?

novel panther
#

I still haven't found any solution for the initial issue.

pine ruinBOT
#

I've brought this to the team's attention.

undone rampart
#

@novel panther , you could store the access key in a database, Google Sheet, or Airtable, etc., then have a query that runs on page load to retrieve the values. The key would still get loaded on the client side, but it would no longer be stored in the app definition or visible in the exported code.

pine ruinBOT
#

@novel panther Is the above suggestion viable for your use case?

novel panther
#

Hey. Yes, thanks a lot. I'll try that! Thanks a lot for the support!