Enable encryption for user with the DMK not encrypted by SMK



As dbo, I am attempting to allow encrypt and decrypt permissions for a
DAUser. Is it possible with the DbMK encrypted only by password (and
not by SMK - want to allow dbo control only)? The DAUser runs under a
schema with minimal permissions (update, insert, delete, select,
execute), and certainly no encryption permissions.

As DAUser, I understand how the DecryptByKeyAutoCert() function can be
used without the symmetric key or DbMK having to be first opened.
However, when I remove encryption by SMK I am warned that the DbMK has
to be first opened. Is this necessarily a permissions thing?

For example:
create master key encryption by password = 'Pufd&s@))%';
ALTER MASTER KEY DROP ENCRYPTION BY SERVICE MASTER KEY;

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'Pufd&s@))%';

create certificate cert_sk_DAUser
authorization DAUser
start_date = '20060626';

create symmetric key sk_Person_InternalEmailAddress with algorithm =
triple_des encryption
by certificate cert_sk_DAUser;

grant view definition on symmetric key::sk_Person_EmailAddress to
DAUser;

close all symmetric keys;

Executing as DAUser, I would like to now run something along these
lines:

select convert( varchar, DecryptByKeyAutoCert(
cert_id('cert_sk_DAUser'), NULL, Person.EmailAddress ))

Where the EmailAddress is encrypted by the new key.

.



Relevant Pages

  • RE: ICSF
    ... The z/OS encryption facility books aren't very helpful. ... And, of course, the Master Key should not be transported in the open. ... to whom they are addressed.If you have received this email in error please notify the system manager. ...
    (bit.listserv.ibm-main)
  • 2005-Problem restoring database with encrypted columns to diff ser
    ... I need to start encrypting several fields in a database and have been doing ... OPEN MASTER KEY DECRYPTION BY PASSWORD = 'testAppleA3'; ... ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY; ... encryption by certificate test; ...
    (microsoft.public.sqlserver.security)
  • Re: Lock Folder
    ... Using permissions can be obviated by moving the drive to another host where the SIDs for the accounts for the permissions are unknown under the other instance of Windows, so none of the permissions are enforced. ... You could use EFS but it is susceptible to password cracking. ... If you use an encrypted container, the encryption is based on the password. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: ALTER MASTER KEY REGENERATE Command
    ... The database master key (DbMK) has an encryption by password and by default ... encryption allows a sysadmin easy access to any data encrypted by the SMK, ...
    (microsoft.public.sqlserver.security)
  • RE: No manageable attributes on files of backed up keys and certif
    ... file level encryption for these files, ... CREATE MASTER KEY ENCRYPTION BY PASSWORD = '1qaz@WSX'; ... ENCRYPTION BY SERVER CERTIFICATE MyServerCert ... BACKUP SERVICE MASTER KEY TO FILE = ...
    (microsoft.public.sqlserver.security)