minio/pkg/iam/policy
Harshavardhana 6695fd6a61
Add more context aware error for policy parsing errors (#8726)
In existing functionality we simply return a generic
error such as "MalformedPolicy" which indicates just
a generic string "invalid resource" which is not very
meaningful when there might be multiple types of errors
during policy parsing. This PR ensures that we send
these errors back to client to indicate the actual
error, brings in two concrete types such as

 - iampolicy.Error
 - policy.Error

Refer #8202
2020-01-03 11:28:52 -08:00
..
action_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
action.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
actionset_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
actionset.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
admin-action.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
constants.go Add support for session policies in STS APIs (#7747) 2019-06-20 15:28:33 -07:00
error.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
policy_test.go Replace Minio refs in docs with MinIO and links (#7494) 2019-04-09 11:39:42 -07:00
policy.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
resource_test.go [sec] Match ${aws:username} exactly instead of prefix match (#7791) 2019-06-15 11:27:17 -07:00
resource.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
resourceset_test.go [sec] Match ${aws:username} exactly instead of prefix match (#7791) 2019-06-15 11:27:17 -07:00
resourceset.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00
statement_test.go Add support for multiple admins (#8487) 2019-11-19 02:03:18 -08:00
statement.go Add more context aware error for policy parsing errors (#8726) 2020-01-03 11:28:52 -08:00