Hide PantryID from app users in src code #154
Unanswered
mrdummy228
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Great question! What's your application's stack look like? My first suggestion would be to store and load the PantryID from an ENV variable if that's possible. That way your source code is free of secrets. Treat the PantryID as an API key and apply best practices for your stack. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! As i said, i am making my email service. Everything works, but i feel unsecure with knowing that people may just look at source code of my service. Well, it is fine, but they also can find out PantryID, and however use it for unwanted database changes (delete all users from db, get user password kv pairs, etc.). How can i hide pantryID in code so that users who look source code won't find it out?
Beta Was this translation helpful? Give feedback.
All reactions