Comments (5)
The X-Account-Meta-Temp-URL-Key required for formpost (and tempurl) is not tied to ACLs. You need account ownership to read (and set) that key; and if you have the key you can write and read from all containers, no matter what kind of ACL is set. This is he reason why you can't get the key: you need to be an account owner.
Keys for a specific container were added recently: openstack/swift@489dd5ff
They work in a similar way to the X-Account-Meta-Temp-URL-Key, meaning that they allow read and write access to that container, regardless of any ACLs set.
Please join #openstack-swift on IRC (freenode) if you have more questions regarding ACLs and formpost.
from django-swiftbrowser.
Could you suggest me for question
I have 3 account
- Username : "Admin" (Role Admin is tenant owner)
- Username : "A" (Role Member)
- Username : "B" (Role Member)
- Admin create 2 container "ContainerA" and "ContanierB" i hope A only access on "ContainerA" and B only access on "ContainerB"
- "Admin" add ACLS Read/Write "A","B" to "ContainerA", "ContainerB"
- That's work when i testing with curl,Restful API, user can Create,Upload,Delete object
- But i tried to use #django-swiftbrowser login by "A" customize "Login" method for bypass ListContainer to ListContainer "ContainerA" list file folder is work, but i can't upload or download file
Thank you
Joh
from django-swiftbrowser.
Hello Joh,
unfortunately this is currently not possible. formpost and tempurl (the middlewares used in django-swiftbrowser) require an account temp url key, and to read and set the key one needs to be an account administrator.
I'm currently looking into using direct PUT/GET requests, for example using AngularJS. This requires some changes, I'm working on it.
from django-swiftbrowser.
thank you :)
from django-swiftbrowser.
Thank you cschwede.
from django-swiftbrowser.
Related Issues (20)
- Make swiftbrowser usable without account ownership HOT 2
- OpenStack Juno
- tempurl or upload obj direct to 127.0.0.1 HOT 1
- Return 'Unauthorized' after uploading object HOT 1
- It returns 400 after setting up swift HOT 5
- not able to share container to another user HOT 4
- 500 on Upload and Download HOT 3
- Select storage policy when creating new container
- Step-wise installation procedure. HOT 2
- Supply username and password in settings
- Centos Installation HOT 7
- Cannot connect from host machine HOT 1
- TypeError while pressinf the (+) upload button on any container HOT 1
- Bad Request(400) when I access on browser. HOT 3
- INSTALLED_APPS and django.contrib.admin HOT 1
- Cant upload file through django browser in container HOT 18
- Add pagination to container and object listing HOT 4
- Add metadata editor HOT 1
- Use Bootstrap V3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-swiftbrowser.