1
0
mirror of https://github.com/minio/minio.git synced 2025-03-26 23:40:57 -04:00

9 Commits

Author SHA1 Message Date
Harshavardhana
203ac8edaa Bucket policies should use minio-go/pkg/policy instead. () 2017-10-27 16:14:06 -07:00
Aaron Walker
5db533c024 bucket-policy: Add IPAddress/NotIPAddress conditions support () 2017-08-05 01:00:05 -07:00
Krishnan Parthasarathi
2665aba555 Fail PutBucketPolicy if conditions are incompatible with actions. () 2017-01-30 09:20:16 -08:00
Krishnan Parthasarathi
b408d0e87d Add aws:Referer condition key support. ()
This change implements bucket policy enhancements required to restrict access based on HTTP referer.
See https://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html#example-bucket-policies-use-case-4 for more information.

Fixes 
2017-01-29 19:45:11 -08:00
Harshavardhana
b0cfceb211 event: Enhance event message struct to provide origin server. ()
`principalId` i.e user identity is kept as AccessKey in
accordance with S3 spec.

Additionally responseElements{} are added starting with

`x-amz-request-id` is a hexadecimal of the event time itself in nanosecs.
`x-minio-origin-server` - points to the server generating the event.

Fixes 
2017-01-10 16:43:48 -08:00
Harshavardhana
1b85302161 Fix spelling and golint errors. ()
Fixes 
2016-11-15 18:14:23 -08:00
Harshavardhana
ef3c807b4a policies: Parser should handle Principals with various forms. ()
Handles cases for these three combinations

  - "Principal": "*",
  - "Principal": { "AWS" : "*" }
  - "Principal": { "AWS" : [ "*" ]}

Fixes 
2016-09-19 13:52:28 -07:00
Harshavardhana
975eb31973 api/bucketPolicy: Use minio-go/pkg/set and fix bucket policy regression. ()
Current master has a regression 'mc policy <policy-type> alias/bucket/prefix'
does not work anymore, due to the way new minio-go changes do json marshalling.
This led to a regression on server side when a ``prefix`` is provided
policy is rejected as malformed from th server which is not the case with
AWS S3.

This patch uses the new ``minio-go/pkg/set`` package to address the
unmarshalling problems.

Fixes 
2016-08-20 03:16:38 -07:00
Harshavardhana
bccf549463 server: Move all the top level files into cmd folder. ()
This change brings a change which was done for the 'mc'
package to allow for clean repo and have a cleaner
github drop in experience.
2016-08-18 16:23:42 -07:00