Hi All,
*apologies if this has been discussed already*
We've seen a few PCF controls that utilise extrernal services and APIs. Skimming through some of these controls it seems like the apporach tends to be via a config parameter that takes a key/secret/url or embedded in the .ts file directly.
This is obviously a concern from a security point of view as the key could be easily accessed via developer tools or the custom control configuration. My questions:
- Is there a better approach to defining and storing keys/secrets for PCFs?
- Could we maybe have a secure property type that can handle this? (totally open to other suggestions btw)
Some other ideas that went through my head:
- config entity that is queried - but this tightly couples a control to an entity
- storing in keyvault - but this is subject to the same secret config issue and may have a performance impact
cheers
Jason