How to sign plugins for root urls using globs

Per Support wildcards when signing plugins · Issue #50652 · grafana/grafana · GitHub it seems that we can sign private plugins using a glob/wildcard pattern.

The command I use is:
npx @grafana/sign-plugin@latest --rootUrls https://**.mydomain.com

The signature is successful, but when I install the plugin, grafana server says it cannot be verified because there is no url match.

I haven’t been able to find documentation on the glob feature, so I’m not sure if it is even fully supported.

Any guidance would be appreciated. Thanks!

Hi @jackson9211 in the issue you linked is described that this functionality is not generally available (GA) and it is only for some specific scenarios we are testing (you can see this PR if you are interested). You can’t private sign plugins with wildcards.

You will have to sign your plugin for every domain you want to use privately. If you wish your plugin to work in all Grafana instances you can read our guide on publishing plugins