LISTSERV mailing list manager LISTSERV 16.5

Help for QSERV-L Archives


QSERV-L Archives

QSERV-L Archives


QSERV-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

QSERV-L Home

QSERV-L Home

QSERV-L  September 2013

QSERV-L September 2013

Subject:

Re: mysql user on qserv worker

From:

"Daniel L. Wang" <[log in to unmask]>

Reply-To:

General discussion for qserv (LSST prototype baseline catalog)

Date:

Tue, 24 Sep 2013 14:17:58 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (86 lines)

(moved to qserv-l for posterity)
Hi Douglas,

There is a good reason to have at least two classes:
1. sysadmin: Setup/maintain a cluster
2. exec: query-execution-related use

This separates activity so that:
a. we can tell the difference in logs
b. mysql can prevent query-execution from doing sysadmin things

Additionally, there is good reason to separate usage from frontend and 
worker specifically for the single-node shared mysqld case, so they 
don't stomp on each other's work.  I am tempted to argue that even on a 
single node, different mysqld instances be used for master and worker 
(which at first seems to limit possible crazy optimization for the 
single-node case, but is probably just a different kind of limit).

Now, on top of that, there is a desire to use mysqld permissions for the 
primary enforcement of end-user access control. I have a gut feeling 
that this tactic will be unsuccessful, but its benefits (moving more 
permissions/access management off our responsibility) are too seductive 
to ignore, and I am in favor of giving it a shot to see if it could work.

We already have some code that passes the username from frontend to 
worker to worker-mysqld. The 'qsmaster' is the default that the frontend 
uses because that part of the code was written before we started using a 
mysql-proxy (i.e., before a plausible username could be retrieved).

More food for thought: the qserv worker and master may do things that 
are part of query execution, but that the end user should not be able to 
access in a query. Like (1) checking the "objectId" index, (2) 
building/destroying subchunks, (3) poking to see what databases and 
chunks can be published. It is true that I am trying to eliminate (1) 
and Serge would love to eliminate (2), but (3) is an example of a usage 
that is read-only, non-sysadmin, and not pegged to a particular user. 
I'm trying to deal with (3) now.

Anyway, at least think about it. I realized that I wasn't going to come 
up with a permanent solution while hacking through (3), so I thought I'd 
see if you had a grand scheme in mind.

-Daniel



On 08/22/2013 01:54 PM, Smith, Douglas A. wrote:
> Well, I think so far we only have mysql root for the creation
> of needed databases.  And then qsmaster user for all qserv
> interactions.
>
> I think that is it?  Do we need any more than that?  I mean
> I think all we need is one username for all qserv use.  Is there
> any other reason to need more than one?
>
> Douglas
>
>
> On 08/21/2013 07:30 PM, Wang, Daniel Liwei wrote:
>> Hi Douglas,
>>
>> Can we clear up the policy for mysql usernames?
>>
>> We've done very little to codify the roles for user names in mysqld.
>> Let's also set aside the access from the qms, because we want to shift
>> that to sqlite anyway.
>>
>> qsmaster: access (done by qserv worker) on behalf of the qserv
>> master/frontend
>> ???: access by qserv master/frontend
>> ???: access by qserv worker for its own needs (maintaining scratch db,
>> deciding how to export)
>>
>> Honestly, I'd like to think as little about this as possible, but since
>> I'm bumping into it while writing code for worker maintenance, it seems
>> like we should make this clear and explicit.
>>
>> -Daniel
>>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2018
February 2018
January 2018
December 2017
August 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use