maco
maco

Reputation: 65

Access values from anypoint secrets manager in dataweave

Inside the secrets manager I have create a secrets group ("accessData") and stored an username / password as Shared Secret ("SAPcredentials") in this group.

In my mule flow I now would like to access these, but I haven't figured out how. I hoped for a method smiliar to the way parameters are handled in dataweave or global configurations, e.g.

p('accessData.SAPcredentials')

or

${accessData.SAPcredentials}

But apparently that's wrong - any suggestion how to do it right?

Upvotes: 0

Views: 1857

Answers (1)

aled
aled

Reputation: 25664

Anypoint Secrets Manager documentation states that only can be used for some services:

Secrets manager supports the management of TLS context for the following services:

Runtime Fabric ingress

You can store TLS artifacts in secrets manager and then configure Anypoint Runtime Fabric ingress with the secret reference.

API Manager in CloudHub

You can store the TLS artifacts in secrets manager and then configure Anypoint API Manager with the secret reference.

It doesn't look like it is possible to use it from a generic Mule application.

Upvotes: 2

Related Questions