Use secret in plugin setting as substitution

Ich would like to use the webhook plugin as final pipeline step to trigger a docker service update. Therefore Portainer provides a simple webhook endpoint like this: https://portainer.com/api/webhooks/token

So I tried to use the secret with substitution:

- name: "Update Swarm Service"
    image: plugins/webhook
    settings:
      PORTAINER_WEBHOOK:
        from_secret: PORTAINER_WEBHOOK
      urls:
        - https://portainer.dev/api/webhooks/${PORTAINER_WEBHOOK}

Is there a way to use a secret and call it like this?

no, secrets cannot be substituted like this

Thanks, I solved this by creating a simple plugin which takes the token as setting :slight_smile: