Prisma1: Updates to secret or disableAuth is not executed

Created on 20 Dec 2017  Â·  10Comments  Â·  Source: prisma/prisma1

In 1.0, when I change my secret in my graphcool.yml and try to deploy, it tells me that my service is already up to date and refuses to deploy.

graphcool/1.0.0-alpha4.2.4 (windows-x64) node-v9.0.0

Update: as it seems, the authentication is updated after all, just not reported.

Most helpful comment

Yes, and especially: switching between disableAuth: true and a secret also works like this, without any warning.

All 10 comments

By the way, I did _not_ test if the secret gets updated when I deploy it 'together' with another change.

@kbrandwijk Even though it is reported that no changes were detected, the secret change should still take effect. Is this not the case for you?

Have you tried with the latest 4.2 beta?
Are you deploying to the local cluster?

I'm deploying to the shared eu cluster using graphcool/1.0.0-alpha4.2.4

Retested it again, and the security is actually updated. Leaving this one open because that definitely needs a user feedback message in the output.

Ah, so it says "Service already uptodate", but the secret is actually changed, right?

Yes, and especially: switching between disableAuth: true and a secret also works like this, without any warning.

$ prisma -v
prisma/1.0.4 (darwin-x64) node-v9.4.0

disableAuth has no effect

run prisma in

  • it hello-world
  • setup a simple ts demo project with local cluster
  • run prisma deploy
  • open playground on http://localhost:4466/hello-world/dev and see token error
  • set disableAuth: true in prisma.yml, comment out secret: mysecret123
  • comment out secret: ‘mysecret123’ in index.ts
  • run prisma deploy
  • nothing changes

In the latest cluster version (1.0.1), the change of whether disableAuth: true or secret: mysecret is used, is ONLY propagated, if there are changes on the data model.
Otherwise, the change is not applied.

@timsuchanek and @do4gr please coordinate so we can ship https://github.com/graphcool/prisma/pull/2021 :-)

This is now fixed and available in 1.4.0 🙂The CLI will be updated to actually print the update soon (check #2084).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MitkoTschimev picture MitkoTschimev  Â·  3Comments

dohomi picture dohomi  Â·  3Comments

marktani picture marktani  Â·  3Comments

sedubois picture sedubois  Â·  3Comments

schickling picture schickling  Â·  3Comments