Commit fbe87c9c authored by Stan Hu's avatar Stan Hu

Allow Pseudonymizer to write to a bucket without having permissions to see all buckets

Calling `Fog::Storage::AWS::Directories#get` requires the ListAllMyBuckets
permission, but we can avoid that extra query and permission by initializing
the directory with a specific bucket.
parent 3549ee7a
---
title: Allow Pseudonymizer to write to a bucket without having permissions to see
all buckets
merge_request: 6682
author:
type: fixed
...@@ -84,7 +84,7 @@ module Pseudonymizer ...@@ -84,7 +84,7 @@ module Pseudonymizer
if connection.service == ::Fog::Storage::Local if connection.service == ::Fog::Storage::Local
connection.directories.create(key: @remote_dir) connection.directories.create(key: @remote_dir)
else else
connection.directories.get(@remote_dir) connection.directories.new(key: @remote_dir)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment