About the Signing & publishing category

This category is used for discussions regarding signing and publishing plugins for Grafana.

I’m having issues with signing PRIVATE plugin… I have followed docs and created new access policy. And I’m running this command in the folder where I developed plugin it’s Vizualization plugin.

export GRAFANA_ACCESS_POLICY_TOKEN="token"
npx @grafana/sign-plugin@latest  --rootUrls http://localhost:5000 

Gives me the this error

Error:  {
  data: '{\n' +
    '  "code": "InvalidCredentials",\n' +
    '  "message": "Token could not be parsed",\n' +
    '  "requestId": "383606ab-9711-4605-9a6b-4271cff33a02"\n' +
    '}',
  status: 401
}

So regarding this: i aded in package.json :slight_smile:

“sign”: "npx --yes @grafana/sign-plugin@latest --rootUrls=http://localhost:3000/,https://someotherurl.com/ ",

  1. open you cmd/zsh
  2. export GRAFANA_ACCESS_POLICY_TOKEN=your token (wihtout any “”)
  3. then you run: npm run sign

This should do the job.