Hi! Maybe I’m getting the docs wrong, but I believe CREDENTIALS_OVERWRITE_DATA env variable is not working as designed.
I’m using a custom node and custom credential type “companyAuth” (with “auth_key” property) - which works well. I try to deploy an n8n docker instance with hardcoded companyAuth credential so users can not reveal it and not modify it.
My understanding is that during the workflow creation user create a dummy “companyAuth” credential with dummy “auth_key” property which during workflow executed is substituted by the overwrite. Apparently this is not the case.
What is happening:
- I’m adding an env variable: CREDENTIALS_OVERWRITE_DATA={“companyAuth”:{“auth_key”:“test_key”}}
- after n8n start - I can not open nor edit nor add any credential of type “companyAuth” because the UI is showing empty window (form for “auth_key” is missing as well as credential details)
- credentials values during workflow execution are not being substituted (I print credentials values to debug console).
Here is the credential code:
export class CompanyAuth implements ICredentialType {
name = 'companyAuth';
displayName = 'Company Authentication';
properties: INodeProperties[] = [
{
displayName: 'Authentication key',
name: 'auth_key',
type: 'string',
default: '',
},
];
}
Information on your n8n setup
- n8n version: 0.181
- Database you’re using (default: SQLite):
- Running n8n with the execution process [own(default), main]:
- Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker