Secrets Handling in AL #251
Replies: 5 comments 9 replies
-
Not to my knowledge, as this is exactly how I have implemented it as well. |
Beta Was this translation helpful? Give feedback.
-
centralized codeunits should not provide a getter method. this would be an security issue. |
Beta Was this translation helpful? Give feedback.
-
It should also be mentioned to always use secrettext as data type if possible. this is available since 2023w2 and got usable by 2024w1. |
Beta Was this translation helpful? Give feedback.
-
What is a secure way to transfer screts between systems (i. e. from NAV to BC if it is not a direct migration)? |
Beta Was this translation helpful? Give feedback.
-
Looking at the screenshot from you (#251 (reply in thread)) im thinking about that all secrets that belong together should also be stored together. i would sewrialize them to a json object and store it as one secret. |
Beta Was this translation helpful? Give feedback.
-
I am quite surprised this was not brought up yet, so let me start this :)
What would be the best practice way of handling secret values in an App?
Before we got the
IsolatedStorage
they where just saved in a setup table withMasked=true
which is of course not ideal.I started to implement them with Isolated storage now, with a Codeunit that handles all the getting and setting for me.
I also created a Page to let the user enter the Secret and I show on the Setup page if the Secret is set or not.
I would like to know if I am missing something obvious or if there is still room for improvement.
Once the idea is complete I will happily summarize this in a Docs page here :)
Beta Was this translation helpful? Give feedback.
All reactions