i***@public.gmane.org
2013-01-17 23:50:28 UTC
Hi all,
Just getting familiar with fog. Really enjoy reading through the source so
far and am eager to get up to speed.
I'd like to attach an access policy to aws accounts and/or groups that
grants minimal access to the actions required for that account or group.
For example say I have an access policy attached to an account that allows
a limited set of actions to be taken on S3:
{
"Statement": [
{
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:GetBucketPolicy",
"s3:ListBucket",
"s3:GetObject",
"s3:GetObjectVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::some.bucket/*"
]
}
]
}
Is this a use-case that fog takes into consideration? Or are there
constraints that require fog have unfettered access via the credentials
given it? Looking at
https://github.com/fog/fog/blob/master/lib/fog/aws/storage.rb it looks like
the latter is true but am new to fog so not sure if that's the right place
to determine what kind of access fog is requesting.
Basically I'd like my access policies to be a whitelist of actions &
resources allowed per account or group. Has anyone had success with this
approach?
Thanks!
- Jeremiah
Just getting familiar with fog. Really enjoy reading through the source so
far and am eager to get up to speed.
I'd like to attach an access policy to aws accounts and/or groups that
grants minimal access to the actions required for that account or group.
For example say I have an access policy attached to an account that allows
a limited set of actions to be taken on S3:
{
"Statement": [
{
"Action": [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:GetBucketPolicy",
"s3:ListBucket",
"s3:GetObject",
"s3:GetObjectVersion"
],
"Effect": "Allow",
"Resource": [
"arn:aws:s3:::some.bucket/*"
]
}
]
}
Is this a use-case that fog takes into consideration? Or are there
constraints that require fog have unfettered access via the credentials
given it? Looking at
https://github.com/fog/fog/blob/master/lib/fog/aws/storage.rb it looks like
the latter is true but am new to fog so not sure if that's the right place
to determine what kind of access fog is requesting.
Basically I'd like my access policies to be a whitelist of actions &
resources allowed per account or group. Has anyone had success with this
approach?
Thanks!
- Jeremiah