-
Notifications
You must be signed in to change notification settings - Fork 9
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
Reset All Existing API Keys #114
Comments
These are the 16 rows in the SELECT id, person_id, name, description FROM apikeys; Given that most of these keys are for test apps (none are "production"), |
Tried running the
But got the error:
🙄 Apparently,
https://hexdocs.pm/phoenix/heroku.html Then we need to seed the DB:
Which sadly fails because there is no
And then when I attempt to run
Gonna update the deps in |
Next: re-attempt to run the command:
|
Can't use the latest Erlang on Heroku: git push heroku rbac-issue-31:master
Enumerating objects: 24, done.
Counting objects: 100% (24/24), done.
Delta compression using up to 8 threads
Compressing objects: 100% (16/16), done.
Writing objects: 100% (16/16), 3.38 KiB | 3.38 MiB/s, done.
Total 16 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Elixir app detected
remote: -----> Will export the following config vars:
remote: ADMIN_EMAIL
remote: AUTH_API_KEY
remote: DATABASE_URL
remote: EMAIL_APP_URL
remote: ENCRYPTION_KEYS
remote: GITHUB_CLIENT_ID
remote: GITHUB_CLIENT_SECRET
remote: GOOGLE_CLIENT_ID
remote: GOOGLE_CLIENT_SECRET
remote: POOL_SIZE
remote: SECRET_KEY_BASE
remote: * MIX_ENV=prod
remote: -----> Checking Erlang and Elixir versions
remote: Will use the following versions:
remote: * Stack heroku-18
remote: * Erlang 23.0.4
remote: * Elixir v1.10.4
remote: Sorry, Erlang 23.0.4 isn't supported yet. For a list of supported versions, please see https://github.com/HashNuke/heroku-buildpack-elixir#version-support
remote: ! Push rejected, failed to compile Elixir app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to dwylauth.
remote:
To https://git.heroku.com/dwylauth.git
! [remote rejected] rbac-issue-31 -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/dwylauth.git' That sucks cause Erlang Downgrading to |
Ok Looks like it's all working: https://dwylauth.herokuapp.com/roles |
|
@th0mas when you're back at your desk tomorrow, you will need to re-create your |
Done. ✅ |
As part of the move to "apps" in the Auth App I have made breaking changes to
apikeys
. Specifically the old API Keys were attached to aperson.id
and the new ones are linked to anapp.id
.At present we only have a handful of demo/test API Keys so it will be more effort to write a migration script or migrate the keys manually than to just reset them all.
I know this creates work for people and I'm sorry. Hopefully creating a new API Key and exporting the new environment variable will only take 1-2 mins per app.
I'm opening this issue as a
chore
to do the update for all theauth_plug
demo apps and any apps I have running on my machine.Todo
auth
App with new schema and code PR: RBAC Role Based Access Control #27 #31 #82 #85AUTH_API_KEY
environment variables@th0mas this will be relevant to your work on the https://github.com/dwyl/smart-home-auth-server
The text was updated successfully, but these errors were encountered: