zerovm / zerocloud

Swift middleware for Zerocloud
Apache License 2.0
53 stars 14 forks source link

Implement proper ACL checks and suid permission #157

Closed pkit closed 9 years ago

pkit commented 9 years ago

Placeholder, not finished yet.

Tests needed still:

Anonymous (api/1.0):

pkit commented 9 years ago

Needs the following:

larsbutler commented 9 years ago

@pkit Can you give me some ideas about how to set up the tests for /api and /open? I've been trying for several hours and can't make any sense of it.

larsbutler commented 9 years ago

For example, I can't figure out how--with the test utils and fixtures--to set up a zapp to handle requests for /open/account/container/foo.zapp, or set the suid, or anything. I'm lost.

larsbutler commented 9 years ago

According to the spec for this feature, the suid stuff should only apply to api/1.0 and open/1.0 features. However, the tests so far implemented on this branch test suid features of everything BUT the REST features.

Why is that? Do we need to update the spec?

pkit commented 9 years ago

Added example with API/1.0 call, fixed a bug regarding anonymous access to API endpoint.

larsbutler commented 9 years ago

See https://github.com/zerovm/zerocloud/pull/172 for a rebased version of this branch.