I am working on a little auth middleware experiment and I want to enforce some settings before enabling the middleware, such as https and cred encryption.
When not using projects, I can simply check if RED.settings.credentialSecret === false and reasonably assume that the creds are not encrypted due to the explicit setting.
When using projects, I cannot seem to find an api that can give me the info. Of course, I can check for the value manually to see if it is === false wrapped in a try/catch block in case the files don't exist:
Well, I found a different way using the runtime api. Of course, I would prefer if the project data was already available to the node, but it works just fine.