Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hD7-007Cxd-LR for pgsql-docs@arkaria.postgresql.org; Wed, 08 Nov 2023 11:59:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r0hD6-002n3p-27 for pgsql-docs@arkaria.postgresql.org; Wed, 08 Nov 2023 11:59:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0hD5-002n3d-Mr for pgsql-docs@lists.postgresql.org; Wed, 08 Nov 2023 11:59:03 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r0hD2-005LMR-W1 for pgsql-docs@lists.postgresql.org; Wed, 08 Nov 2023 11:59:03 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-540c54944c4so1469855a12.1 for ; Wed, 08 Nov 2023 03:59:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1699444739; x=1700049539; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=oBpMmE3c7geTEK7O9xieqpTzv/m8Oh4PFD5feG6wzmY=; b=U1hxAO8WEi5D1jxOzqln9M6JLm37+TZPmdWw3gGQeF3DI3D9Zh6BBEHu+Hu8HYBgl1 p03Vg1mPes9oZyG6OGbtyioKXrlnwDZNHVbBULJ45i64skbb99Rl7JMyp7DGtzb50z6R v4KYLHMG95AHVLsnyE7wb1vcaLvo23EDJNzhKDay9MDC7k68F8F9Qevxo1jcdBPlirdP 6DO65Ob7lsji3O9uSBEzkOpd8+ikPoEWa7Dgpw/6GnQea9c61k4xPmR7OfJL9hhIloeK MzYW/vhEyY1HDTmTArE2FWdIyTUfC+Ae3BQKcnDIRhb0sczERaa9UlzSN3JbSmJ2ZKsD 3HIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699444739; x=1700049539; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=oBpMmE3c7geTEK7O9xieqpTzv/m8Oh4PFD5feG6wzmY=; b=V8TFuq4M87UMXxf4CtVD+Yw8YDB3eus7iOvsDdPXdb3drbULXy1c/x7V+D7LQpICEf HJlOIWpvVgqL++ZkJzghmOx8v5KSMzagW9fSyihIKFAs5ZrEhRgAbm3DX9/ZMz/Wld65 d+vVJaSWzCtMUDsrV7qKyKBZYKy5tHF8PXzM8v54KAzTmzB9N81XWGZ4apwnUFexvort fryBEesp2VJSSHIY1yMu2LCA/BwG4DB6JUSwR4XMnbk4Bmkz8EnOqejjJb2mKVWllBcP TpAyGQNEp40ns8BXnBxerhT3NRrxb+f7kF5bGCZM/aP6HatiMdCQxDF6CBn6J9KTpf7V ObpA== X-Gm-Message-State: AOJu0YyVc5Bq76dyiKqKFIkg7UOTkzZcxG3dHrODJ4iLLII+3eE+wNAm XBprFj5UWCR+w31p2zj4ztgPAQ== X-Google-Smtp-Source: AGHT+IFp1uw/J9VQlEkf0A7TJ1h5k05KnrByTh3Ie5ZWBcCdGTmfLAxWhNa3ZRZsf0BuIlVy5S9xxg== X-Received: by 2002:a50:d59d:0:b0:545:39f0:97e with SMTP id v29-20020a50d59d000000b0054539f0097emr482171edi.0.1699444739418; Wed, 08 Nov 2023 03:58:59 -0800 (PST) Received: from localhost.localdomain ([88.116.133.170]) by smtp.gmail.com with ESMTPSA id e18-20020a50d4d2000000b00543820cd70asm6789788edj.93.2023.11.08.03.58.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 03:58:59 -0800 (PST) Message-ID: Subject: Re: Another user complaint regarding visibility of pg_catalog data From: Laurenz Albe To: "David G. Johnston" , PostgreSQL Documentation Date: Wed, 08 Nov 2023 12:58:58 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2023-11-07 at 12:28 -0700, David G. Johnston wrote: > This comes up every so often (including today on Discord) and I keep havi= ng trouble > figuring out where to point people for our official assertion and explana= tion > for why anyone with a login can view routine bodies, view specifications,= and comments. >=20 > Is this something we just don't want to go into detail within our documen= tation, > or just no one has cared enough to write something up (beyond my first dr= aft back > then) and form it into a patch? I am not sure if we can and want to document the "why" (this does not reall= y belong into the technical documentation), but the fact that most catalog tables ca= n be read by PUBLIC is worth documenting. Perhaps here: https://www.postgresql.org/docs/current/catalogs.html When people ask my "why?", I tend to answer "why not?". It is not a securi= ty problem, in my opinion. Every user is allowed to know that I have a table "purchase" with a column "credit_card_nr". As long as the permissions are = set correctly, that is no problem. Any attempt to hide that information is at = best "security by obscurity". Yours, Laurenz Albe