Re: What does CONTROL permissions give on asymmetric key?



MDC (MDC@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
I am trying to determine if granting CONTROL permission on an asymmetric
key is a good or bad thing?

What does CONTROL mean in the context of the key? I want to assign it
to a database role that is used by typical users. I need to do this to
use the DecryptByKeyAutoAsymKey function in table functions, etc.

CONTROL means that you can do everything with the object that sysadmin cxan
do. Thus, with this permission, the users can drop the key and to all sorts
of things to it.

An alternative may be to sign the modules where you need to use DecryptByKey
with a certificate, and the grant a user created from the certificate
CONTROL permission on the key.

I have an article on my web site that describes this in detail:
http://www.sommarskog.se/grantperm.html.


--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

.



Relevant Pages

  • Cannot Use Non-Administrator Account to Start SQL Server and Force Encryption
    ... I changed the service account of a named instance (product ... a certificate from a Microsft Certificate Server ... the SQL Service. ... SQL Server could not spawn FRunCM thread. ...
    (microsoft.public.sqlserver.security)
  • Re: cant login to sql after ive installed a self made certificat
    ... MS SQL was working fine previously. ... After installing a new self signed certificate using SelfSSL for an IIS ... Let's see your connection string. ... Hitchhiker’s Guide to Visual Studio and SQL Server ...
    (microsoft.public.sqlserver.connect)
  • Re: Simple Insert Into...
    ... it is in a control on the form; and is unbound (it's actually a combo ... box that is used as a dropdown list, values taken from a different table; SQL ... I need this value to assign a unique ID to the entire recordset being ... In your form's Sub, you'll wind up with something like the following: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Simple Insert Into...
    ... The form is based on an SQL in the form's Record Source property, ... holds the current text in the control, ... Sometimes the unbound controls do have a value (such as when they are set ... I need this value to assign a unique ID to the entire recordset being ...
    (microsoft.public.access.modulesdaovba)
  • Re: version control for database settings in Workbench?
    ... control in past issues of SQL Server Professional. ... I do realize that source control or Transact-SQL code is ... >put scripts for changing server settings there. ...
    (microsoft.public.sqlserver.tools)