Having Issues using managementApiSecret

prisma

#1

I setup a managementApiSecret on Prisma docker server version 1.34. However on Prisma CLI version 1.34.5 if I do PRISMA_MANAGEMENT_SECRET=MYSECRET prisma deploy I get the following below. As soon as I remove the secret from the server/cli everything works. What am I doing wrong here?

This does seem related to Prisma deploy results in error - Cluster secret in env var PRISMA_MANAGEMENT_API_SECRET does not match for cluster default, but it never received an answer.

$ PRISMA_MANAGEMENT_SECRET=MYSECRET prisma deploy                                      
ERROR: No cluster could be found for workspace '*' and cluster 'default'
{
  "data": {
    "generateClusterToken": null
  },
  "errors": [
    {
      "message": "No cluster could be found for workspace '*' and cluster 'default'",
      "locations": [
        {
          "line": 3,
          "column": 9
        }
      ],
      "path": [
        "generateClusterToken"
      ],
      "code": 222
    }
  ],
  "status": 200
}

#2

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.