@grafana/sign-plugin

3.0.1 • Public • Published

Grafana / Sign Plugin

Sign Grafana plugins with ease.

ToC

@grafana/sign-plugin works on macOS, Windows and Linux.
If something doesn’t work, please file an issue.
If you have questions or need help, please ask in GitHub Discussions.

Signing a plugin

Signing a plugin allows Grafana to verify the authenticity of the plugin with signature verification. This gives users a way to make sure plugins haven’t been tampered with. All Grafana Labs-authored plugins, including Enterprise plugins, are signed.

All plugins require a signature since Grafana 7.0.

Please refer to Signing plugins documentation to understand how to sign a Grafana plugin. The following commands are mentioned here for development purposes.

Sign a public plugin

In your plugin directory, sign the plugin with your Grafana access policy token. Grafana sign-plugin creates a MANIFEST.txt file in the dist directory of your plugin.

export GRAFANA_ACCESS_POLICY_TOKEN=<YOUR_GRAFANA_ACCESS_POLICY_TOKEN>
npx @grafana/sign-plugin@latest

If the plugin distribution directory differs from the default dist, specify the path to use with the --distDir flag.

export GRAFANA_ACCESS_POLICY_TOKEN=<YOUR_GRAFANA_ACCESS_POLICY_TOKEN>
npx @grafana/sign-plugin@latest --distDir path/to/directory

Sign a private plugin

In your plugin directory, run the following to create a MANIFEST.txt file in the dist directory of your plugin.

npx @grafana/sign-plugin@latest --rootUrls https://example.com/grafana

Alterntives:

npx

npx @grafana/sign-plugin@latest

yarn (> 2.x)

yarn dlx @grafana/sign-plugin@latest

Contributing

We are always grateful for contribution! See the CONTRIBUTING.md for more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @grafana/sign-plugin

Weekly Downloads

1,004

Version

3.0.1

License

Apache-2.0

Unpacked Size

39.4 kB

Total Files

25

Last publish

Collaborators

  • teodosii
  • yulia.shanyrova
  • clord
  • reemtariqq
  • grafanabot
  • scottleppgrafana
  • academo_grafana
  • jwestbrook
  • ivanahuckova
  • domasx2
  • bmatei
  • dsotirakis
  • tolzhabayev
  • iwysiu
  • andresmgotor
  • leventebalogh
  • torkelo
  • dprokop
  • peteholmberg
  • ryantxu
  • mckn
  • sunker