Storing and retrieving a secret API key in a server build?

Use INI files and don’t replicate, make sure it runs on server and only server engine ini has it (don’t place key in default config)

Use of INI files is very limited in blueprint, but at least you can read variable from it. You can click variable and extend property tab, there should be Config Variable Checkbox, this will make engine grab default value from INI file on object creation. The INI location where this variable will be loaded from is printed out on tooltip when you hover over the config checkbox. The variable name in INI should be the same as in the blueprint, im not 100% the bool variable might require “b” prefix, also don’t make variables name with spaces.

Thats all you can do with INIs in blueprint (without any plugins) for more you need to dive in to C++:

^^^^ it will work the same as in blueprint but in C++ you can call LoadConfig() and SaveConfig() on object with config varbales to load and save those variable states from/to INI anytime. You can also more directly edit INI files:

All GConfig functions: