How to store secrets in UCB?

I’m currently trying to setup my Staging and Production builds with Unity Cloud Build and for this I need to connect my JFrog NPM credentials to a pre-build script to create a upmconfig.toml file so the editor can import my custom packages.

All I see is that there are Environment variables available but I don’t see any way to add secrets to the project. What would be the best way to handle this? I don’t want to expose my credentials the way the environment variables would do.

Hi there,

This is a great question and at this time, the most commonly used solution is indeed the Environment variables (or injecting the credentials directly into your script). The environment variables are stored encrypted but they are definitely visible in the UI (Dashboard/Build Logs). At this time, we don’t have any planned features for this but it is something we may look at in the future.

Thank you,
Peter D
Senior Unity Service Support Developer

Is there any update on this? I have a similar question to this regarding platform wide secrets, especially now you are offering Cloud Code such as passing in API keys for use with Axois.