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

Add support for key derivation with a context #78

Merged
merged 3 commits into from
May 17, 2019

Commits on May 17, 2019

  1. Configuration menu
    Copy the full SHA
    f00e27a View commit details
    Browse the repository at this point in the history
  2. Add support for key derivation with a context

    This adds support for passing a context to Vault Transit encrypt/decrypt
    operations, allowing an application to specify a context per record or a
    `belongs_to` relation (such as a user, team, or organization). The
    context can be a string, or if given a proc or symbol, will generate the
    context for each encrypt/decrypt request.
    
    This changes the signature of `Vault::Rails.encrypt` and
    `Vault::Rails.decrypt`. Each had an arity of 3-4, and they now have an
    arity of 3 and 2 optional keyword arguments. The minor version number
    should be bumped on release (since the major version is still 0).
    justincampbell committed May 17, 2019
    Configuration menu
    Copy the full SHA
    dae0e6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2a0b57a View commit details
    Browse the repository at this point in the history