Giter VIP home page Giter VIP logo

Comments (12)

serverfire avatar serverfire commented on August 23, 2024

@libreliodev I couldn't connect to dynamodb. There is problem in permission.
AccessDeniedException: User: arn:aws:iam::105216790221:user/developer is not authorized to perform: dynamodb:ListTables on resource: *
I couldn't find a place for setting target in dynamodb, Probably every IAM user has a dynamodb.

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire You do not need to "ListTables", and it is intentional that app admins do not have the right to do so.

We made a few modifications to what was mentioned above, and here are some additional details:

  • the table used for all users is arn:aws:dynamodb:eu-west-1:105216790221:table/Users (instead of arn:aws:dynamodb:eu-west-1:105216790221:table/Subscribers)
  • there is a different hash key for each app. The attribute name of this key is "App", the value is "[publisher]_[app]" (for example "developer_app1")
  • the range key is the User Name, the attribute name for this range key is "User Name"
  • there are 2 additional attributes: "Password" (string) and "Status" (number)

So, for example, if you want to list the users of "app1" of "developer", you need to perform a query with "App"="developer_app1"

from javascript.

serverfire avatar serverfire commented on August 23, 2024

@libreliodev Now i get this error.
AccessDeniedException: User: arn:aws:iam::105216790221:user/developer is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:eu-west-1:105216790221:table/Users

Request is a dynamodb query with Condition "App"="publisher_app".

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire

Now i get this error.
AccessDeniedException: User: arn:aws:iam::105216790221:user/developer is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:eu-west-1:105216790221:table/Users

Request is a dynamodb query with Condition "App"="_".

As specified above, you should use for example "App"="developer_app1".

"App"="_" will fail for 2 reasons:

  • "developer" is not allowed to perform such a query.
  • there are no records with Condition "App"="_".

from javascript.

serverfire avatar serverfire commented on August 23, 2024

@libreliodev
Request Condition was "App"="developer_app1". There was a error in comment i wrote.

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire

There may have been a mistake in the permissions, sorry. We updated the policy, can you check and let me know if it' OK?

from javascript.

serverfire avatar serverfire commented on August 23, 2024

@libreliodev Thank you!
No permission error anymore. Anyway result was empty.

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire Thanks.

However, the result should not be empty, there are 2 records. There might still be a permission issue preventing you from seeing them.

from javascript.

serverfire avatar serverfire commented on August 23, 2024

@libreliodev Sorry wrong report. I was testing it another app. app1 have two records.

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire OK, thanks again.

from javascript.

serverfire avatar serverfire commented on August 23, 2024

@libreliodev Please check this issue.
Thank you

from javascript.

libreliodev avatar libreliodev commented on August 23, 2024

@serverfire Successfully tested.

from javascript.

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.