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

Replace simple token authentication gem with an encrypted API token field #1329

Merged
merged 7 commits into from
Jun 13, 2020

Conversation

connorshea
Copy link
Owner

@connorshea connorshea commented Jun 11, 2020

It's bothered me for a while that the tokens were plaintext in the database. This change will reset everyone's tokens, but that shouldn't be a huge problem since there aren't many people using the API right now anyway.

I still need to get all the tests working and probably write a few more. For some reason the app doesn't accept the token in the current spec I've written.

CI will need to get some fake values for the credentials files. (can maybe use the multi-environment credentials functionality? https://blog.saeloun.com/2019/10/10/rails-6-adds-support-for-multi-environment-credentials.html)

It makes it so the GraphiQL interface has the headers editor enabled and will be autofilled with fake data. The user session shouldn't be valid as authentication for accessing the GraphQL API.

…eld.

It's bothered me for a while that the tokens were plaintext in the
database. This change will reset everyone's tokens, but that
shouldn't be a huge problem since there aren't many people using the API
right now anyway.

I still need to get all the tests working and probably write a few more.
For some reason the app doesn't accept the token in the current spec
I've written.
@connorshea connorshea added enhancement New feature or request dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability api GraphQL API-related issues and PRs backend Issues and pull requests related to the vglist backend labels Jun 11, 2020
@connorshea connorshea changed the title Replace simple token authenication gem with an encrypted API token field Replace simple token authenitcation gem with an encrypted API token field Jun 11, 2020
@connorshea connorshea changed the title Replace simple token authenitcation gem with an encrypted API token field Replace simple token authentication gem with an encrypted API token field Jun 13, 2020
@connorshea connorshea marked this pull request as ready for review June 13, 2020 22:17
@connorshea connorshea merged commit af87d93 into master Jun 13, 2020
@connorshea connorshea deleted the encrypt-user-tokens branch June 13, 2020 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api GraphQL API-related issues and PRs backend Issues and pull requests related to the vglist backend dependencies Pull requests that update a dependency file enhancement New feature or request security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant