fix(opnsense): switch secrets to api-key key and secret for easier understanding (#3744)

This commit is contained in:
Meier Lukas
2025-08-08 17:53:03 +02:00
committed by GitHub
parent 4a07b3f866
commit 7f474683a5
6 changed files with 70 additions and 4 deletions

View File

@@ -37,9 +37,9 @@ export class OPNsenseIntegration extends Integration implements FirewallSummaryI
}
private getAuthHeaders() {
const username = super.getSecretValue("username");
const password = super.getSecretValue("password");
return `Basic ${btoa(`${username}:${password}`)}`;
const key = super.getSecretValue("opnsenseApiKey");
const secret = super.getSecretValue("opnsenseApiSecret");
return `Basic ${btoa(`${key}:${secret}`)}`;
}
public async getFirewallVersionAsync(): Promise<FirewallVersionSummary> {