GithubHelp home page GithubHelp logo

Comments (5)

cschwede avatar cschwede commented on September 4, 2024

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.

s0mprasong avatar s0mprasong commented on September 4, 2024

Could you suggest me for question
I have 3 account

  1. Username : "Admin" (Role Admin is tenant owner)
  2. Username : "A" (Role Member)
  3. Username : "B" (Role Member)
  4. Admin create 2 container "ContainerA" and "ContanierB" i hope A only access on "ContainerA" and B only access on "ContainerB"
  5. "Admin" add ACLS Read/Write "A","B" to "ContainerA", "ContainerB"
  6. That's work when i testing with curl,Restful API, user can Create,Upload,Delete object
  7. 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.

cschwede avatar cschwede commented on September 4, 2024

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.

dsljjmark avatar dsljjmark commented on September 4, 2024

thank you :)

from django-swiftbrowser.

s0mprasong avatar s0mprasong commented on September 4, 2024

Thank you cschwede.

from django-swiftbrowser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.