Skip to content

Conversation

@boite
Copy link
Collaborator

@boite boite commented Jun 6, 2019

  • 0c8f61f Changes

      `setData(encrypt(key), encrypt(object))`
    

    to

      `setData(hash(key), encrypt(concat(key, object)))`
    

    so that we can actually retrive our objects ;) and to provide assurance that:-

    • keys aren't leaked
    • keys and objects are assured to be authentic
    • objects cannot have their keys maliciously "swapped"
  • d9cec37 fixes the S3 adapter so that it works with a modern aws-sdk-php

  • 4e51144 changes the default S3 "canned ACL" to private from readable by the public; this can now be configured per instance of the S3 adapter

boite added 6 commits June 4, 2019 12:27
The storage key is now the hashed (and authenticated) original storage
key so that lookups succeed.  The storage key was encrypted
npn-deterministicaly in the previous implementation which made lookups
fail.

Storage keys are guaranteed not to have been tampered with (say, an
attacker replaces a stored value with another, authentic value, but that
is not related to the original storage key).
The default was "public-read" :o

Now it is "private" and can be configured at build time by supplying a
config with key "canned_acl_for_objects".
@boite boite requested a review from joostfaassen June 6, 2019 09:38
Copy link
Member

@joostfaassen joostfaassen left a comment

Choose a reason for hiding this comment

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

@jah thanks! Happy to retrieve objects again :) Should I tag this as v4.0.0 ?

"symfony/console": "^4",
"aws/aws-sdk-php": "^3",
"friendsofphp/php-cs-fixer": "^2.15",
"phpstan/phpstan": "^0.11.8",
Copy link
Member

Choose a reason for hiding this comment

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

+1

@boite
Copy link
Collaborator Author

boite commented Jun 8, 2019

@jah thanks! Happy to retrieve objects again :) Should I tag this as v4.0.0 ?

Heh heh. Yes please v4.0.0 is a good idea.

@joostfaassen joostfaassen merged commit 6004442 into master Jun 9, 2019
@delete-merged-branch delete-merged-branch bot deleted the develop branch June 9, 2019 18:33
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