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

Chore/dev updates #46

Merged
merged 7 commits into from
Oct 23, 2023
Merged

Chore/dev updates #46

merged 7 commits into from
Oct 23, 2023

Conversation

mollyretter
Copy link
Contributor

Description of changes

  1. bump elixir version from 1.13.0 to 1.14.0
  2. update package version from 0.3.0 to 0.4.0
  3. add mix_audit to check for security vulnerabilities
  4. remove secure_compare and add plug_crypto
  5. remove circleci and add github actions config
  6. update readme
  7. automatic formatting updates

@mollyretter mollyretter self-assigned this Oct 20, 2023
@mollyretter mollyretter marked this pull request as ready for review October 20, 2023 19:46
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the only "real" code change in this PR--switching from secure_compare mix package to plug_crypto

Copy link

@nialbima nialbima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really simple! Seems good.

Comment on lines +13 to 16
@header_key :"X-APIAuth-Content-Hash"
@md5_header_key :"Content-MD5"
@value_key :content_hash
@value_key :content_hash

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming, because a change in the header type broke us in the past: this is just a formatting change, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup! just an automated spacing change

Comment on lines 11 to 13
def compare(hc, keys) do
compare(hc, keys, &SecureCompare.compare/2)
compare(hc, keys, &Crypto.secure_compare/2)
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding here: where previously, we were passing in a pointer to &SecureCompare.compare, we've replaced that with &Crypto.secure_compare.

The new lib doesn't require any kind of config args?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://elixir-lang.org/getting-started/modules-and-functions.html#function-capturing < here's some more info on the & /2 syntax. both methods have arity of 2 and accept 2 binaries no changes should be needed (but we'll make sure this still works on non-prod)

@mollyretter mollyretter merged commit c0b7185 into release-0.4.0 Oct 23, 2023
@mollyretter mollyretter mentioned this pull request Oct 23, 2023
Copy link

@alxjrvs alxjrvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Late to the party, but 🛳️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants