Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amBei-0007Oh-6g for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2016 02:51:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1amBeh-0007EV-Pe for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Apr 2016 02:51:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1amBeh-0007EF-3D for pgsql-hackers@postgresql.org; Sat, 02 Apr 2016 02:51:19 +0000 Received: from tamriel.snowman.net ([2001:4830:167b::11]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amBed-0003Op-Nr for pgsql-hackers@postgresql.org; Sat, 02 Apr 2016 02:51:18 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A455B5F799; Fri, 1 Apr 2016 22:51:13 -0400 (EDT) Date: Fri, 1 Apr 2016 22:51:13 -0400 From: Stephen Frost To: Noah Misch Cc: pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Refer to a TOKEN_USER payload as a "token user, " not as a "user Message-ID: <20160402025113.GI10850@tamriel.snowman.net> References: <20160402021211.GH10850@tamriel.snowman.net> <20160402024613.GC1545657@tornado.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SprEMcskhUyF0lyO" Content-Disposition: inline In-Reply-To: <20160402024613.GC1545657@tornado.leadboat.com> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-77-generic (x86_64) X-Uptime: 22:48:16 up 38 days, 23:41, 10 users, load average: 0.01, 0.02, 0.05 User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org --SprEMcskhUyF0lyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Noah Misch (noah@leadboat.com) wrote: > On Fri, Apr 01, 2016 at 10:12:12PM -0400, Stephen Frost wrote: > > and there's no such thing as a "token user" concept. There's an enum, > > one value of which is "TokenUser" and that's what we're asking the OS to > > provide us info about, but I'd argue that if we're going to refer to the > > textual enum representation then we should spell it just exactly as the > > enum has it. > >=20 > > If we don't want to use "TokenUser" then I'd suggest that "user token" > > is a more accurate term to use, as we had before this change. There is > > no such thing as a "token user", as far as I'm aware, in GSSAPI, SSPI, > > or general access token lingo. >=20 > "User token" has definitely been wrong. We already possess the user toke= n at > the moments of these error messages, because we pass the user token as the > first GetTokenInformation() argument. We're retrieving information about= the > "user" that pertains to a particular "token", hence "token user." A verb= ose > description is "could not get user associated with access token." Ok, "user token information" would still be better than "token user" which has a completely different connotation, as I see it. > I see some advantages of writing "TokenUser", as you propose. However, o= ur > error style guide says "Avoid mentioning called function names, either; > instead say what the code was trying to do." Mentioning an enumerator na= me is > morally similar to mentioning a function name. That's a fair point, but it doesn't mean we should use a different spelling for the enumerator name to avoid that piece of the policy. I certianly don't see "token user" as saying "what the code was trying to do" in this case. Thanks! Stephen --SprEMcskhUyF0lyO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJW/zOhAAoJEO1sijiDR2RV/jEP/iZ7dGOzx2btqHo5Mx2Kq3Hj H0JS7IuHFdIVzTzLV5qO6cDu8y+WqXFW5gMTBnUr3wZkocy9jARH4fmv7J2HkmLY Awm7hFa3dlKeX9pVWjs59mXxuLkTp3nKl5RU0tGYbuZth1sV20wDRTrQdH9YJi17 +bhyYfDnyXk8g8lEMPDcnaFXkj6zCpd09C7m9u4P1MiXEP2tTekvxN5qITVPz/hw m8Am4KLmSAlv9Cqd8DqZUd3YK1m5ZwiuABWasiYKGOiUWzWrWfzyHhMLbb976Gf2 d6ooid1BICyKGXhylx89gFrDUA8Ug9NXvICEGnchVyFwKUTYwZSkWAiOm7xZwimf tfYnf7nKCazr2GQzK+Mk5l4HSMsJuLGTzegwYmSduLDk/6bWUtfDqo6ueMmwFgrT 5xlejOpavY/czjb5BDWOMS2958MNCj092DiKikoSW6+dYysb2zsbZIp5XqlMHxcc ABO2E68bwr502aEpfWWTOAr48zwViNfxPjP+fCTVzsYXFSfJdkqtSnacdG4uGtX0 4xUaFKeuYIxswoGluFg7hhAceUIE9I0GIjrcLF7VQYmpaj544XDbE0zEiQ2nP+Q3 2aLKKNawPn1WPdHm8dJVGEPsYZ8EW5l6qjQQ+RVbBBQd72IIoU0OVvl6OlY4nrMq p8ti+fHbtFPQ0USXf0CY =2+c+ -----END PGP SIGNATURE----- --SprEMcskhUyF0lyO--