pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedIgnoring the limited user-rights by using ODBC
6+ messages / 5 participants
[nested] [flat]
* Ignoring the limited user-rights by using ODBC
@ 2005-03-24 14:12 Goeke, Tobias <TGoeke@ElectronicPartner.de>
0 siblings, 2 replies; 6+ messages in thread
From: Goeke, Tobias @ 2005-03-24 14:12 UTC (permalink / raw)
To: pgsql-odbc
Hello,
I created a new user in a new schema.
This user is only authorized to select the views in this schema.
If i look at the tables and views for this user by using "\d", there are
only a few views shown.
That means that the rights are correctly set.
Now the real problem:
If i connect to the database via obdc with this user, all schemes are shown.
So i am able to select all the tables and views e.g. in excel, although the
user isn't autorized.
I should only be able to select a few views, like it is configured in psql.
How can i constrain this?
Can you help me?
Thanks
Tobias
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Ignoring the limited user-rights by using ODBC
@ 2005-03-29 17:55 Joshua D. Drake <jd@commandprompt.com>
parent: Goeke, Tobias <TGoeke@ElectronicPartner.de>
1 sibling, 0 replies; 6+ messages in thread
From: Joshua D. Drake @ 2005-03-29 17:55 UTC (permalink / raw)
To: Goeke, Tobias <TGoeke@ElectronicPartner.de>; +Cc: pgsql-odbc
On Thu, 2005-03-24 at 15:12 +0100, Goeke, Tobias wrote:
> Hello,
>
> I created a new user in a new schema.
> This user is only authorized to select the views in this schema.
> If i look at the tables and views for this user by using "\d", there are
> only a few views shown.
> That means that the rights are correctly set.
>
> Now the real problem:
>
> If i connect to the database via obdc with this user, all schemes are shown.
> So i am able to select all the tables and views e.g. in excel, although the
> user isn't autorized.
Have you verified that the user can actually select from the tables or
can the user just see that the tables exist?
Have you verified that you are actually connecting as the limited user?
Sincerely,
Joshua D. Drake
>
> I should only be able to select a few views, like it is configured in psql.
> How can i constrain this?
>
> Can you help me?
>
> Thanks
> Tobias
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
--
Command Prompt, Inc., Your PostgreSQL solutions company. 503-667-4564
Custom programming, 24x7 support, managed services, and hosting
Open Source Authors: plPHP, pgManage, Co-Authors: plPerlNG
Reliable replication, Mammoth Replicator - http://www.commandprompt.com/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Ignoring the limited user-rights by using ODBC
@ 2005-03-29 21:02 Jeff Eckermann <jeff_eckermann@yahoo.com>
0 siblings, 0 replies; 6+ messages in thread
From: Jeff Eckermann @ 2005-03-29 21:02 UTC (permalink / raw)
To: Goeke, Tobias <TGoeke@electronicpartner.de>; +Cc: pgsql-odbc
--- "Joshua D. Drake" <jd@commandprompt.com> wrote:
> On Thu, 2005-03-24 at 15:12 +0100, Goeke, Tobias
> wrote:
> > Hello,
> >
> > I created a new user in a new schema.
> > This user is only authorized to select the views
> in this schema.
> > If i look at the tables and views for this user by
> using "\d", there are
> > only a few views shown.
> > That means that the rights are correctly set.
> >
> > Now the real problem:
> >
> > If i connect to the database via obdc with this
> user, all schemes are shown.
> > So i am able to select all the tables and views
> e.g. in excel, although the
> > user isn't autorized.
This is a known issue, and I do not know of any
workaround. IIRC, it was Dave Page who posted a
reason for this behaviour some months back, but I
forget the details.
>
> Have you verified that the user can actually select
> from the tables or
> can the user just see that the tables exist?
>
> Have you verified that you are actually connecting
> as the limited user?
>
> Sincerely,
>
> Joshua D. Drake
>
>
> >
> > I should only be able to select a few views, like
> it is configured in psql.
> > How can i constrain this?
> >
> > Can you help me?
> >
> > Thanks
> > Tobias
> >
> >
> >
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to
> majordomo@postgresql.org
> --
> Command Prompt, Inc., Your PostgreSQL solutions
> company. 503-667-4564
> Custom programming, 24x7 support, managed services,
> and hosting
> Open Source Authors: plPHP, pgManage, Co-Authors:
> plPerlNG
> Reliable replication, Mammoth Replicator -
> http://www.commandprompt.com/
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Ignoring the limited user-rights by using ODBC
@ 2005-03-30 18:14 Peter Eisentraut <peter_e@gmx.net>
parent: Goeke, Tobias <TGoeke@ElectronicPartner.de>
1 sibling, 1 reply; 6+ messages in thread
From: Peter Eisentraut @ 2005-03-30 18:14 UTC (permalink / raw)
To: Goeke, Tobias <TGoeke@electronicpartner.de>; +Cc: pgsql-odbc
Goeke, Tobias wrote:
> If i connect to the database via obdc with this user, all schemes are
> shown. So i am able to select all the tables and views e.g. in excel,
> although the user isn't autorized.
It is not possible that the ODBC driver can circumvent privileges that
would otherwise apply. Please provide a detailed way to reproduce your
problem.
Note that what the \d commands in psql show does not necessarily define
the scope of a user's access privileges. It merely shows what might be
of interest to the user.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Ignoring the limited user-rights by using ODBC
@ 2005-03-30 18:47 Marko Ristola <marko.ristola@kolumbus.fi>
parent: Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 6+ messages in thread
From: Marko Ristola @ 2005-03-30 18:47 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Goeke, Tobias <TGoeke@electronicpartner.de>; pgsql-odbc
I remember from some other databases, that
the schema is not for security. It is for application
logic:
If you have marko.branch and users.branch
tables, you can link to both by
select * from marko.branch
union
select * from users.branch
You can revoke rights from the tables with the following commands:
revoke all from marko on marko.branch;
revoke all from marko on users.branch;
After these, "marko" user is not able to read, or write into the tables.
You can play with the schema like this with ODBC:
set search_path to marko,public; -- the new schema is "marko"
select * from branch; /* points into marko.branch */
set search_path to users,public;
select * from branch; /* points into users.branch */
Read or write rights (grant/revoke) for the table and
visibility (naming, search path, namespace, schema) of the table
name are a different thing.
Marko Ristola
Peter Eisentraut wrote:
>Goeke, Tobias wrote:
>
>
>>If i connect to the database via obdc with this user, all schemes are
>>shown. So i am able to select all the tables and views e.g. in excel,
>>although the user isn't autorized.
>>
>>
>
>It is not possible that the ODBC driver can circumvent privileges that
>would otherwise apply. Please provide a detailed way to reproduce your
>problem.
>
>Note that what the \d commands in psql show does not necessarily define
>the scope of a user's access privileges. It merely shows what might be
>of interest to the user.
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Ignoring the limited user-rights by using ODBC
@ 2005-03-31 10:14 Goeke, Tobias <TGoeke@ElectronicPartner.de>
0 siblings, 0 replies; 6+ messages in thread
From: Goeke, Tobias @ 2005-03-31 10:14 UTC (permalink / raw)
To: Marko Ristola <marko.ristola@kolumbus.fi>; Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-odbc
The crux is that the \d commands in psql does not necessarily define
the scope of a user's access privileges. (referring to Peter Eisentraut)
So there can't exist a solution for my "problem" (better wish!) because the
user must read out of the other tables in the views.
I should accept it that they are shown in the choice via odbc.
Thanks a lot for helping me!
Tobias Goeke
-----Ursprüngliche Nachricht-----
Von: Marko Ristola [mailto:marko.ristola@kolumbus.fi]
Gesendet: Mittwoch, 30. März 2005 20:48
An: Peter Eisentraut
Cc: Goeke, Tobias; pgsql-odbc@postgresql.org
Betreff: Re: [ODBC] Ignoring the limited user-rights by using ODBC
I remember from some other databases, that
the schema is not for security. It is for application
logic:
If you have marko.branch and users.branch
tables, you can link to both by
select * from marko.branch
union
select * from users.branch
You can revoke rights from the tables with the following commands:
revoke all from marko on marko.branch;
revoke all from marko on users.branch;
After these, "marko" user is not able to read, or write into the tables.
You can play with the schema like this with ODBC:
set search_path to marko,public; -- the new schema is "marko"
select * from branch; /* points into marko.branch */
set search_path to users,public;
select * from branch; /* points into users.branch */
Read or write rights (grant/revoke) for the table and
visibility (naming, search path, namespace, schema) of the table
name are a different thing.
Marko Ristola
Peter Eisentraut wrote:
>Goeke, Tobias wrote:
>
>
>>If i connect to the database via obdc with this user, all schemes are
>>shown. So i am able to select all the tables and views e.g. in excel,
>>although the user isn't autorized.
>>
>>
>
>It is not possible that the ODBC driver can circumvent privileges that
>would otherwise apply. Please provide a detailed way to reproduce your
>problem.
>
>Note that what the \d commands in psql show does not necessarily define
>the scope of a user's access privileges. It merely shows what might be
>of interest to the user.
>
>
>
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2005-03-31 10:14 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-03-24 14:12 Ignoring the limited user-rights by using ODBC Goeke, Tobias <TGoeke@ElectronicPartner.de>
2005-03-29 17:55 ` Joshua D. Drake <jd@commandprompt.com>
2005-03-30 18:14 ` Peter Eisentraut <peter_e@gmx.net>
2005-03-30 18:47 ` Marko Ristola <marko.ristola@kolumbus.fi>
2005-03-29 21:02 Re: Ignoring the limited user-rights by using ODBC Jeff Eckermann <jeff_eckermann@yahoo.com>
2005-03-31 10:14 Re: Ignoring the limited user-rights by using ODBC Goeke, Tobias <TGoeke@ElectronicPartner.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox