Skip to content

security/acme-client: Wrong DEPLOY_TRUENAS_* mapping to config #5498

@jungtravor

Description

@jungtravor

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
DEPLOY_TRUENAS_APIKEY, DEPLOY_TRUENAS_HOSTNAME, DEPLOY_TRUENAS_PROTOCOL are set to undefined config value acme_truenasws_apikey, acme_truenasws_hostname, acme_truenasws_protocol.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Services - ACME Client - Automations
  2. Click on "Automations" tab
  3. Create or edit an automation, choose "Update certificate to TrueNAS Server (Websocket API)" on Run Command
  4. Enter the API key, hostname and scheme
  5. Add this automation to a certificate setting, manually run the automation
  6. See the automation failed with error "TrueNAS API key not found, please set the DEPLOY_TRUENAS_APIKEY environment variable."

Expected behavior
The console shows "Environment variables: OK" when the acme script truenas_ws.sh gets correct variables.

Screenshots
Config definition:
Image
Environment variable mappings:
Image

Additional context
Relevant files:
security/acme-client/src/opnsense/mvc/app/controllers/OPNsense/AcmeClient/forms/dialogAction.xml
security/acme-client/src/opnsense/mvc/app/library/OPNsense/AcmeClient/LeAutomation/AcmeTruenasWs.php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions