pg.ddx.io pgvector/pgvector GitHub issues and pull requestshelp / color / mirror / Atom feed
[pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? 7+ messages / 4 participants [nested] [flat]
* [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-09-29 12:03 "gbartolini (@gbartolini)" <noreply+gbartolini@github.com> 0 siblings, 0 replies; 7+ messages in thread From: gbartolini (@gbartolini) @ 2023-09-29 12:03 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Currently, the `vector.control` file does not explicitly set `superuser = true` and/orĀ `trusted = true`. It would be cool to enable database owners to independently install it, without requiring superuser. Would this be possible? Thanks. ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-10-03 19:13 "ankane (@ankane)" <noreply+ankane@github.com> 5 siblings, 0 replies; 7+ messages in thread From: ankane (@ankane) @ 2023-10-03 19:13 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi @gbartolini, thanks for the suggestion. It looks like this should be possible (as other [data and index types](https://github.com/postgres/postgres/commit/eb67623c965b4759a96309cdb58a17339fc5d401) are), but I think it'll be easiest to wait until Postgres 11 and 12 are no longer supported, as Postgres errors on unrecognized parameters in the control file. ```text ERROR: unrecognized parameter "trusted" in file "/usr/share/postgresql/12/extension/vector.control" ``` Another option would be to try and dynamically generate the control file based on the version. ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-10-03 20:15 "gbartolini (@gbartolini)" <noreply+gbartolini@github.com> 5 siblings, 0 replies; 7+ messages in thread From: gbartolini (@gbartolini) @ 2023-10-03 20:15 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> I am a big fan of the second option. Making it trusted for Postgres 13+ is already an important achievement from a security point of view. Thanks! ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-10-04 12:43 "jkatz (@jkatz)" <noreply+jkatz@github.com> 5 siblings, 0 replies; 7+ messages in thread From: jkatz (@jkatz) @ 2023-10-04 12:43 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> I currently disagree with making it trusted for everyone (13+ included) and instead recommend continuing to allow database administrators to determine on their own if it should be trusted or not. While I do think the pgvector codebase is well maintained and vetted for possible vulnerabilities, installation and other modifications operations will run as the database superuser, which means that the installing user will have temporary superuser access. While we should ensure that pgvector code can meet that bar, I still think it's better for a database administrator to make the call if the extension should be trusted or not. There have been known privilege escalation paths in PostgreSQL through extensions (eg CVE-2022-2625), so I think it's safer (at least for now) to leave things as is. ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-11-09 22:34 "ankane (@ankane)" <noreply+ankane@github.com> 5 siblings, 0 replies; 7+ messages in thread From: ankane (@ankane) @ 2023-11-09 22:34 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Agree it's safer to leave things as is, so will go with that for now. ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2023-11-09 22:34 "ankane (@ankane)" <noreply+ankane@github.com> 5 siblings, 0 replies; 7+ messages in thread From: ankane (@ankane) @ 2023-11-09 22:34 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> @ankane closed this. ^ permalink raw [nested|flat] 7+ messages in thread
* Re: [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? @ 2025-08-27 14:24 "rjuju (@rjuju)" <noreply+rjuju@github.com> 5 siblings, 0 replies; 7+ messages in thread From: rjuju (@rjuju) @ 2025-08-27 14:24 UTC (permalink / raw) To: pgvector/pgvector <noreply+pgvector-pgvector@github.com> Hi, So 2 years later, all the currently supported postgres version now understand the `trusted` parameter in the extension **.control** file. Is there any chance to mark pgvector as trusted now? The objection was from @jkatz which started with "I **currently** disagree" so I thought it's worth asking again. I don't know how other provider are handling this extension, but I think that all the main providers support it and I doubt that most of them actually provide real superuser connections. ^ permalink raw [nested|flat] 7+ messages in thread
end of thread, other threads:[~2025-08-27 14:24 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2023-09-29 12:03 [pgvector/pgvector] issue #288: Any chance to see this extension packaged as trusted? "gbartolini (@gbartolini)" <noreply+gbartolini@github.com> 2023-10-03 19:13 ` "ankane (@ankane)" <noreply+ankane@github.com> 2023-10-03 20:15 ` "gbartolini (@gbartolini)" <noreply+gbartolini@github.com> 2023-10-04 12:43 ` "jkatz (@jkatz)" <noreply+jkatz@github.com> 2023-11-09 22:34 ` "ankane (@ankane)" <noreply+ankane@github.com> 2023-11-09 22:34 ` "ankane (@ankane)" <noreply+ankane@github.com> 2025-08-27 14:24 ` "rjuju (@rjuju)" <noreply+rjuju@github.com>
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