Why am I unable to access secrets from a web app with MATLAB Web App Server R2024a?
I developed a MATLAB app that fetches data from a database using the secrets functionality. This works successfully in my local machine. However, running the same app as a web app throws the following errors when trying to access the secret:
2024-09-15 15:26:44 webappSendGetSecretCommand :failure: User is not authorized to access this data
2024-09-15 15:26:44 Error using getSecret (line 10)
2024-09-15 15:26:44 No secret value found for secret name ‘mySecret’ in the vault.
I have followed the documentation to set up my MATLAB Web App Server with all of the secrets from my local MATLAB session. I have also enabled SSL and authentication (OIDC) on my Web App Server.
Why am I unable to access secrets through my web app?I developed a MATLAB app that fetches data from a database using the secrets functionality. This works successfully in my local machine. However, running the same app as a web app throws the following errors when trying to access the secret:
2024-09-15 15:26:44 webappSendGetSecretCommand :failure: User is not authorized to access this data
2024-09-15 15:26:44 Error using getSecret (line 10)
2024-09-15 15:26:44 No secret value found for secret name ‘mySecret’ in the vault.
I have followed the documentation to set up my MATLAB Web App Server with all of the secrets from my local MATLAB session. I have also enabled SSL and authentication (OIDC) on my Web App Server.
Why am I unable to access secrets through my web app? I developed a MATLAB app that fetches data from a database using the secrets functionality. This works successfully in my local machine. However, running the same app as a web app throws the following errors when trying to access the secret:
2024-09-15 15:26:44 webappSendGetSecretCommand :failure: User is not authorized to access this data
2024-09-15 15:26:44 Error using getSecret (line 10)
2024-09-15 15:26:44 No secret value found for secret name ‘mySecret’ in the vault.
I have followed the documentation to set up my MATLAB Web App Server with all of the secrets from my local MATLAB session. I have also enabled SSL and authentication (OIDC) on my Web App Server.
Why am I unable to access secrets through my web app? secrets, web, app MATLAB Answers — New Questions