<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SafeSession on Mimus</title><link>https://mimus.pgsty.com/docs/spock/upstream/safesession/</link><description>Recent content in SafeSession on Mimus</description><generator>Hugo</generator><language>en-US</language><atom:link href="https://mimus.pgsty.com/docs/spock/upstream/safesession/index.xml" rel="self" type="application/rss+xml"/><item><title>LICENCE()</title><link>https://mimus.pgsty.com/docs/spock/upstream/safesession/licence/</link><guid>https://mimus.pgsty.com/docs/spock/upstream/safesession/licence/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;Upstream reference for SafeSession 1.1. Mimus 19.0.1 integrates &lt;a href="https://mimus.pgsty.com/docs/spock/"&gt;Spock 5.0.15&lt;/a&gt;. Compatibility of SafeSession with Mimus is unverified.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The PostgreSQL License&lt;/p&gt;&#10;&lt;p&gt;Copyright (c) 2025 - 2026, pgEdge, Inc.&lt;/p&gt;&#10;&lt;p&gt;Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.&lt;/p&gt;&#10;&lt;p&gt;IN NO EVENT SHALL pgEdge, Inc. BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF pgEdge, Inc. HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;/p&gt;</description></item><item><title>Changelog</title><link>https://mimus.pgsty.com/docs/spock/upstream/safesession/changelog/</link><guid>https://mimus.pgsty.com/docs/spock/upstream/safesession/changelog/</guid><description>&lt;blockquote&gt;&#10;&lt;p&gt;Upstream reference for SafeSession 1.1. Mimus 19.0.1 integrates &lt;a href="https://mimus.pgsty.com/docs/spock/"&gt;Spock 5.0.15&lt;/a&gt;. Compatibility of SafeSession with Mimus is unverified.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;All notable changes to the pgEdge SafeSession will be&#10;documented in this file.&lt;/p&gt;&#10;&lt;p&gt;The format is based on &lt;a href="https://keepachangelog.com/"&gt;Keep a Changelog&lt;/a&gt;,&#10;and this project adheres to&#10;&lt;a href="https://semver.org/spec/v2.0.0.html"&gt;Semantic Versioning&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="11---2026-11-06"&gt;[1.1] - 2026-11-06&#10;&lt;/h2&gt;&#10;&lt;h3 id="changed"&gt;Changed&#10;&lt;/h3&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Release workflow installs the repository client certificate&#10;before configuring the pgEdge package repositories, and verifies&#10;that the key matches the certificate, that the certificate and&#10;its issuer are within their validity periods, and that the chain&#10;issuer is the expected one&lt;/li&gt;&#10;&lt;li&gt;Release workflow fails if the repository rewrite fails&lt;/li&gt;&#10;&lt;li&gt;Release workflow pins the builder action by commit SHA&lt;/li&gt;&#10;&lt;li&gt;Packaging no longer builds for Debian bullseye&lt;/li&gt;&#10;&lt;li&gt;Packaging defaults now target v1.1&lt;/li&gt;&#10;&lt;li&gt;Removed pgEdge Labs branding from the README and documentation&#10;landing page&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="10---2026-08-25"&gt;[1.0] - 2026-08-25&#10;&lt;/h2&gt;&#10;&lt;h3 id="added"&gt;Added&#10;&lt;/h3&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;SECURITY.md&lt;/code&gt;, documenting how to report a vulnerability&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="10-beta1---2026-08-21"&gt;[1.0-beta1] - 2026-08-21&#10;&lt;/h2&gt;&#10;&lt;h3 id="added-1"&gt;Added&#10;&lt;/h3&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Initial release of pgEdge SafeSession&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;GUC &lt;code&gt;pgedge_safesession.roles&lt;/code&gt; (SUSET) to specify&#10;restricted roles&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;ExecutorStart hook to block DML (INSERT, UPDATE, DELETE,&#10;MERGE) and C-language function execution&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;ProcessUtility hook to block DDL, COPY FROM, GRANT/REVOKE,&#10;VACUUM/ANALYZE, exclusive locks, and GUC tampering&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Session-user anchored role checking: SET ROLE cannot escape&#10;restrictions&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Superuser exemption: superusers are never restricted&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Role membership inheritance via &lt;code&gt;is_member_of_role()&lt;/code&gt;&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Belt-and-suspenders: automatic&#10;&lt;code&gt;default_transaction_read_only = on&lt;/code&gt; for restricted sessions&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;SECURITY DEFINER bypass prevention: session user is always&#10;checked regardless of effective user&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Comprehensive regression test suite covering:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Basic DML blocking&lt;/li&gt;&#10;&lt;li&gt;SET ROLE bypass prevention&lt;/li&gt;&#10;&lt;li&gt;PL/pgSQL and SQL function enforcement&lt;/li&gt;&#10;&lt;li&gt;DDL blocking&lt;/li&gt;&#10;&lt;li&gt;COPY FROM/TO handling&lt;/li&gt;&#10;&lt;li&gt;CREATE TABLE AS / SELECT INTO blocking&lt;/li&gt;&#10;&lt;li&gt;SECURITY DEFINER function enforcement&lt;/li&gt;&#10;&lt;li&gt;Role membership inheritance and superuser exemption&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;Configurable protection layers via new SUSET GUCs:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;block_dml&lt;/code&gt;: toggle DML blocking (default: on)&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;block_ddl&lt;/code&gt;: toggle DDL blocking (default: on)&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;block_c_functions&lt;/code&gt;: toggle C-language function&#10;blocking (default: on)&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;block_all_c_functions&lt;/code&gt;: block all C functions&#10;regardless of volatility (default: off)&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;COPY TO PROGRAM blocking for restricted sessions&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;SET TRANSACTION READ WRITE blocking for restricted&#10;sessions&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;New regression tests for advanced attack vectors&#10;(PREPARE/EXECUTE, DO blocks, aggregates, WHERE clauses,&#10;SET TRANSACTION)&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;New regression tests for GUC toggle behavior&lt;/p&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item></channel></rss>