pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgdg-keyring
4+ messages / 2 participants
[nested] [flat]

* pgdg-keyring
@ 2012-11-18 12:55  Christoph Berg <cb@df7cb.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Christoph Berg @ 2012-11-18 12:55 UTC (permalink / raw)
  To: pgsql-pkg-debian

Did I mention the new pgdg-keyring package here yet?

Feedback is welcome - I'm still pondering which of "pinning" and
"sources list entry" should be part of the package, and what to use as
defaults there for the debconf questions. The current plan would be to
add a pinning question, but default to "no" (principle of least
surprise for the casual user).

We also need to investigate how well the package works when there's
already a copy of the key in /etc/apt/trusted.gpg - which is the case
when

wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -

is used, while pgdg-keyring installs
/etc/apt/trusted.gpg.d/apt.postgresql.org.gpg [*]. Possibly we need to
wipe the trusted.gpg version when the package is installed.

Christoph

[*] Should I rather call that pgdg.gpg?
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachments:

  signature.asc (application/pgp-signature, 835B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgdg-keyring
@ 2012-11-18 14:28  Magnus Hagander <magnus@hagander.net>
  parent: Christoph Berg <cb@df7cb.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Magnus Hagander @ 2012-11-18 14:28 UTC (permalink / raw)
  To: Christoph Berg <cb@df7cb.de>; +Cc: pgsql-pkg-debian

On Sun, Nov 18, 2012 at 1:55 PM, Christoph Berg <cb@df7cb.de> wrote:
> Did I mention the new pgdg-keyring package here yet?

Nope.


> Feedback is welcome - I'm still pondering which of "pinning" and
> "sources list entry" should be part of the package, and what to use as
> defaults there for the debconf questions. The current plan would be to
> add a pinning question, but default to "no" (principle of least
> surprise for the casual user).

I still argue that the default should be "yes", with the exact same
argument about principle of least surprise :)

But that could be because I misunderstand the actual question?


> We also need to investigate how well the package works when there's
> already a copy of the key in /etc/apt/trusted.gpg - which is the case
> when
>
> wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
>
> is used, while pgdg-keyring installs
> /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg [*]. Possibly we need to
> wipe the trusted.gpg version when the package is installed.

Yeah, I think we can expect a number of people to have done that
already. And certainly some who prefer doing it that way.

But surely the system must cope with keys being installed more than
once? More interesting is really what happens if you have two copies
of the key - and only one of them is renewsed for exmaple..

> [*] Should I rather call that pgdg.gpg?

No, I think that is a good name. It shows it's a key for the apt
repository specifically. There is a different GPG key used for the yum
repo, for example.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgdg-keyring
@ 2012-11-18 15:39  Christoph Berg <cb@df7cb.de>
  parent: Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 4+ messages in thread

From: Christoph Berg @ 2012-11-18 15:39 UTC (permalink / raw)
  To: pgsql-pkg-debian

Re: Magnus Hagander 2012-11-18 <CABUevExbHLugeMJ_jd14s=CnErwxvKw=bMwyoOPBF2-5Xq0GVw@mail.gmail.com>
> > Feedback is welcome - I'm still pondering which of "pinning" and
> > "sources list entry" should be part of the package, and what to use as
> > defaults there for the debconf questions. The current plan would be to
> > add a pinning question, but default to "no" (principle of least
> > surprise for the casual user).
> 
> I still argue that the default should be "yes", with the exact same
> argument about principle of least surprise :)
> 
> But that could be because I misunderstand the actual question?

Nah, it is the same discussion as we had at my place. I'm kind of
included to get the pgdg-keyring package included in Debian itself, so
we have an easy trust path. In Debian, the question of "prefer pgdg"
defaults might be different, but we certainly don't want to maintain
two versions of the same package, just with different defaults.

I'll keep thinking about it :)

> But surely the system must cope with keys being installed more than
> once? More interesting is really what happens if you have two copies
> of the key - and only one of them is renewsed for exmaple..

That's the actual question. If we provide a new (renewed) key in the
package, apt (or gpg) must not get confused by the other copy. (The
fix is probably to remove the "manual" key on installation of the
pgdg-keyring package.)

> > [*] Should I rather call that pgdg.gpg?
> 
> No, I think that is a good name. It shows it's a key for the apt
> repository specifically. There is a different GPG key used for the yum
> repo, for example.

Well, we are using "pgdg" in lots of other places, so we should
(could?) probably use it here too.

Christoph
-- 
cb@df7cb.de | http://www.df7cb.de/

Attachments:

  signature.asc (application/pgp-signature, 835B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: pgdg-keyring
@ 2012-11-18 16:23  Magnus Hagander <magnus@hagander.net>
  parent: Christoph Berg <cb@df7cb.de>
  0 siblings, 0 replies; 4+ messages in thread

From: Magnus Hagander @ 2012-11-18 16:23 UTC (permalink / raw)
  To: Christoph Berg <cb@df7cb.de>; pgsql-pkg-debian

On Sun, Nov 18, 2012 at 4:39 PM, Christoph Berg <cb@df7cb.de> wrote:
> Re: Magnus Hagander 2012-11-18 <CABUevExbHLugeMJ_jd14s=CnErwxvKw=bMwyoOPBF2-5Xq0GVw@mail.gmail.com>
>> > Feedback is welcome - I'm still pondering which of "pinning" and
>> > "sources list entry" should be part of the package, and what to use as
>> > defaults there for the debconf questions. The current plan would be to
>> > add a pinning question, but default to "no" (principle of least
>> > surprise for the casual user).
>>
>> I still argue that the default should be "yes", with the exact same
>> argument about principle of least surprise :)
>>
>> But that could be because I misunderstand the actual question?
>
> Nah, it is the same discussion as we had at my place. I'm kind of
> included to get the pgdg-keyring package included in Debian itself, so
> we have an easy trust path. In Debian, the question of "prefer pgdg"
> defaults might be different, but we certainly don't want to maintain
> two versions of the same package, just with different defaults.
>
> I'll keep thinking about it :)

Aha. I can see it being a more controversial thing to do if you want
to push it into Debian itself.

Speaking of which, is the name pgdg-keyring really the right one? If
it *only* adds the key to the keyring it seems correct, but if it also
adds a repository to your server it seems like a bad name for the
package?


>> But surely the system must cope with keys being installed more than
>> once? More interesting is really what happens if you have two copies
>> of the key - and only one of them is renewsed for exmaple..
>
> That's the actual question. If we provide a new (renewed) key in the
> package, apt (or gpg) must not get confused by the other copy. (The
> fix is probably to remove the "manual" key on installation of the
> pgdg-keyring package.)

Yeah, unless it's smart enough to recognize which key is valid and
only use that one.

As you say, some testing is probably required :)



>> > [*] Should I rather call that pgdg.gpg?
>>
>> No, I think that is a good name. It shows it's a key for the apt
>> repository specifically. There is a different GPG key used for the yum
>> repo, for example.
>
> Well, we are using "pgdg" in lots of other places, so we should
> (could?) probably use it here too.

We could. But I think calling it apt.postgresql.org.gpg is more clear :)

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2012-11-18 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-18 12:55 pgdg-keyring Christoph Berg <cb@df7cb.de>
2012-11-18 14:28 ` Magnus Hagander <magnus@hagander.net>
2012-11-18 15:39   ` Christoph Berg <cb@df7cb.de>
2012-11-18 16:23     ` Magnus Hagander <magnus@hagander.net>

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