minio/pkg/policy
Harshavardhana b6ca39ea48 Support migrating inconsistent bucket policies (#5855)
Previously we used allow bucket policies without
`Version` field to be set to any given value, but
this behavior is inconsistent with AWS S3.

PR #5790 addressed this by making bucket policies
stricter and cleaner, but this causes a breaking
change causing any existing policies perhaps without
`Version` field or the field to be empty to fail upon
server startup.

This PR brings a code to migrate under these scenarios
as a one time operation.
2018-04-27 15:02:54 -07:00
..
condition Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
action.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
action_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
actionset.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
actionset_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
effect.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
effect_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
id.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
id_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
policy.go Support migrating inconsistent bucket policies (#5855) 2018-04-27 15:02:54 -07:00
policy_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
principal.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
principal_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
resource.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
resource_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
resourceset.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
resourceset_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
statement.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00
statement_test.go Enhance policy handling to support SSE and WORM (#5790) 2018-04-24 15:53:30 -07:00