Re: Cross-database execution permissions with certificates and sch
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Thu, 07 Feb 2008 15:13:15 -0800
Craig Thomas (CraigThomas@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
In the article Uri references
(http://www.sommarskog.se/grantperm.html#ownershipchaining) there is a
section that describes the perils of using "EXECUTE AS OWNER",
particularly when the owner has plenty of privileges. Yet in every
reference I read about Service Broker, EXECUTE AS OWNER is the way to
achieve the cross-database permissions needed for an "activated" stored
procedure.
You cannot accuse for knowing too much about Service Broker, but I have
at least read Roger's book.
I don't really see anything being different for Service Broker than
for anything else. You do need an EXECUTE AS in the queue activation,
but that's a different thing from having WITH EXECUTE AS in a stored
procedure.
Since Service Broker runs as a system process, to execute an activation
procedure, it has to be someone, and you use the EXECUTE AS clause in
ALTER/CREATE QUEUE to specify that.
I would suggest that best practice is to use a dedicated user, so that
when you look at audit trails, blocking scenarios etc quickly can see
that what comes from Service Broker.
But as I indicated: I have worked very little with Service Broker myself.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- Cross-database execution permissions with certificates and schemas
- From: Craig Thomas
- Re: Cross-database execution permissions with certificates and schemas
- From: Dan Guzman
- Re: Cross-database execution permissions with certificates and sch
- From: Craig Thomas
- Cross-database execution permissions with certificates and schemas
- Prev by Date: Re: file system permissions and cross-database certificates?
- Next by Date: Trouble with SSL
- Previous by thread: Re: Cross-database execution permissions with certificates and sch
- Next by thread: Re: SQL Services account question...
- Index(es):
Relevant Pages
|