Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating external_apple_secret shows outdated token #211

Open
2 tasks done
diederich opened this issue Dec 4, 2024 · 0 comments
Open
2 tasks done

Updating external_apple_secret shows outdated token #211

diederich opened this issue Dec 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@diederich
Copy link

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions

Describe the bug

We're managing most settings via the terraform provider, which is fantastic - thanks for providing this! 🙏
While updating the external_apple_secret for "Sign in with Apple" we found that there seems to be an old key cached somewhere. Supabase Dashboard already shows the new key, we have the new key in terraform, but a terraform plan shows us the old key and thus brings up a diff. (Applying that diff works, and nothing actually changes)

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Make sure supabase is configured with an external_apple_secret
  2. Make sure you have a proper terraform setup and terraform plan is showing an empty diff on apply/plan
  3. update the external_apple_secret in the Supabase Dashboard
  4. update the external_apple_secret in terraform
  5. Run terraform plan
  6. There's a diff visible, showing an old external_apple_secret, which is neither in code nor in Supabase anymore.

Expected behavior

The terraform diff should show up empty.

Screenshots

n/a

System information

  • OS: macOS
  • terraform provider version: 1.4.2
  • terraform version: 1.9.8

Additional context

This isn't blocking anything for us, more of an FYI. Once the new diff is applied, this also works correctly. It just seems it's comparing against the terraform state / cached version. If this is on purpose, e.g. because those credentials can't be read back, maybe there's a world to highlight that?
Thank you! 🙏

@diederich diederich added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant