Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Connecting to UAT environment from DevTest Environment and KeyVault Secrets

(1) ShareShare
ReportReport
Posted on by 8
Hello, I have been working on debugging a UAT environment through a DevTest environment and had some issues with encryption. I have checked through this post here:
Encryption error while debugging UAT environment from Devtest environment (dynamics.com)

I see that importing in secrets between environments isn't possible since that's a Microsoft limitation currently. In this case however, since the Devtest environment is connecting to the UAT database rather than importing the data, I would have thought the secrets could carry over in this way. Correct me if I am wrong, but is there still a way to get around the issue of having to re-enter in secrets when connecting through Devtest? Thanks in advance.
  • Suggested answer
    Anton Venter Profile Picture
    19,542 Super User 2025 Season 1 on at
    Connecting to UAT environment from DevTest Environment and KeyVault Secrets
    The Key vault secret to access the Key vault in F&O, is encrypted and stored in the database. The key used to encrypt/decrypt this data is on the environment/AOS. Each environment/AOS has its own key. The problem is, you are accessing the UAT data from the Dev environment which is probably using the Dev key to decrypt the Key vault secret.
  • Community member Profile Picture
    8 on at
    Connecting to UAT environment from DevTest Environment and KeyVault Secrets
    Hello,
     
    the link should be updated properly now, not sure why it wasn't working before.
    Thanks for the response, that clears up a lot for me. Currently both environments should be using the same keys from the same keyvault. When you say connection will require the appropriate credentials, shouldn't this follow those conditions then? Or is the encryption still going to be different?
  • Community member Profile Picture
    4 on at
    Connecting to UAT environment from DevTest Environment and KeyVault Secrets
  • Suggested answer
    PerezAguiar Profile Picture
    on at
    Connecting to UAT environment from DevTest Environment and KeyVault Secrets
    hey!
     
    The link you've shared seems broken.  However, and as a general Security behavior:  If environment 1 is encrypted with some credentials/key, any kind of access to this data either from another environment or from a tool that will simply connect, will require to decrypt such data with the right key.  Other environments most likely will NOT be encrypted the same way or with same key.  Therefore, you should use the appropriate credentials/Key to access the data on it.
     
    This is valid to connect/read the data from that environment.  Even if it's another environment on the same tenant, the condition should still apply:  Connection will require the appropriate key/Credentials.
     
    Regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans