Coder Social home page Coder Social logo

Comments (5)

ra0o0f avatar ra0o0f commented on August 21, 2024

@imtrobin operations like CreateDatabase needs system privilege. these operation use SystemDatabaseCredential and other use DatabaseCredential. i separate credentials so end-users can set limited-access-user (not root) for regular operations.

from arangoclient.net.

imtrobin avatar imtrobin commented on August 21, 2024

Yes, I assume so. Is there a list we can check? Cos it seems insert a document also needs SystemDatabaseCredential, which I found it odd.

from arangoclient.net.

ra0o0f avatar ra0o0f commented on August 21, 2024

@imtrobin note that when SystemDatabaseCredential is used in an operation(like creating database), all request will be use _system, so inserting document should not use SystemDatabaseCredential, if it is, its a bug

from arangoclient.net.

imtrobin avatar imtrobin commented on August 21, 2024

I did some more testing. I confirm

  1. Creating database needs SystemCredential
  2. Creating collection do not need SystemCredential, just Credential
  3. Creating doc do not need SystemCredential, just Credential, with user that has permission Administrate.

Is that correct?

from arangoclient.net.

ra0o0f avatar ra0o0f commented on August 21, 2024

@imtrobin absolutely. for more clarification:

  1. Creating database needs SystemCredential because it is perform on _system database. only _system can create database.

Creating collection do not need SystemCredential, just Credential because it is perform on the database which is set on DatabaseSetting.Database which credentials are set on DatabaseSetting.Credential

from arangoclient.net.

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.