Permissions and encryption

  • Is there any way to restrict permissions so that a user can read from a database (and even decrypt data) but not write/update/delete? I assume this is possible. If someone could point me in the right direction where I can read up on it. I haven't been able to come up with anything thus far. Thank you.

  • this would all be controlled by the permissions you grant within the database.

    ---------------------------------------------------------------------

  • What you're looking for is "Permissions (Database Engine)". The operative word is GRANT permissions. You can "not" grant permissions to do just about anything. You can grant permission to SELECT and deny the permission to INSERT or UPDATE. There is a whole granularity thing going on here. In the past, the secure way of doing this was to deny any direct access to the tables and only grant access through programmables (procedures, functions,...). I don't know what the latest thoughts are on this subject.

  • Thank you for the replies. TDE is not an option at this point. The application has been in service for many years. We need a solution to where users can be given read access to any table for troubleshooting purposes. This includes decrypting data. However, these users should not be able to affect any change to the existing data.

    There were a few comments that have given me new areas to search. Hopefully, I will find a resolution to this issue soon.

    Thank you again.

  • sounds like these users just need adding to the db_datareader role and no other, plus use the decrypting functions to read the data.

    the other way would be to provide read only stored procedures and give then execute rights on those.

    ---------------------------------------------------------------------

  • There are no grants for encrypting/decrypting data. This is controlled when a user can open a key that performs the function. This could be in a stored proc or with batch code.

    The read but not write has to do with permissions as noted above.

  • Normal SQL permissions (GRANT and DENY and the database roles) apply for reading and writing data.

    TDE has no effect.

    Your cryptographic approach applies for decrypting and encryption - if you use symmetric encryption, then if they have the key to encrypt, they have the key to decrypt - you'd have to move to asymmetric/public key cryptography to enforce this at a cryptographic level.

Viewing 8 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic. Login to reply