Giter VIP home page Giter VIP logo

Comments (2)

ConstantineK avatar ConstantineK commented on May 19, 2024

Looks like this is an issue with Connect-SqlServer generally requiring SA, we can definitely connect to the server with the -RegularUser switch, which wont attempt to enforce this.

There is still some mulling going on around general permissions and how much we want to manage them, I think the current behavior of the command is acknowleding that managing permissions is a PITA.

Going forward, I think we have a few options:

  1. Continue as usual until someone complains and add additional code
  2. Make it easier to swap in a regular user and make them deal with the permissions of the user must be sufficient (obviously dealing with errors)
  3. Code in the understanding of the required permissions to manage this feature, which will be a moving target as newer functions of SQL Server come out, but we could potentially abstract this into its own set of functions.
  4. ???

I was wondering if you had any opinion on the topic @paschott?

from dbatools.

wsmelton avatar wsmelton commented on May 19, 2024

My opinion is handle the option by just validating if the user has direct sysadmin privileges via role membership or explicitly granted CONTROL SERVER. If they do not then just post a warning like:

[Security] The user account in use is not granted elevated privileges to [server name], some actions may fail or error.

I mean look how applications handle it, on average, none of them are going to check if you have permissions and then fail (before taking that action). They are just going to fail after trying it, and in their documentation state what permissions are required for each user that handles whatever process. Microsoft does the same thing for the most part (e.g. SharePoint services, SQL Server install account).

from dbatools.

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.