fix(opnsense): switch secrets to api-key key and secret for easier understanding (#3744)
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user