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:

So I tried to use the secret with substitution:

- name: "Update Swarm Service"
    image: plugins/webhook
        from_secret: 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: