Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iBIXK-0000Ty-9t for pgsql-general@arkaria.postgresql.org; Fri, 20 Sep 2019 13:01:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iBIXH-0002KE-8X for pgsql-general@arkaria.postgresql.org; Fri, 20 Sep 2019 13:01:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iBIXG-0002K1-Jj for pgsql-general@lists.postgresql.org; Fri, 20 Sep 2019 13:01:18 +0000 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iBIXD-0001UD-OY for pgsql-general@lists.postgresql.org; Fri, 20 Sep 2019 13:01:16 +0000 Received: by mail-io1-xd2c.google.com with SMTP id b19so15969620iob.4 for ; Fri, 20 Sep 2019 06:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4m9vuuD7oooyJxlMa5La4kHHKcoSZ2r+W/XOsdfyLYY=; b=qbyOXiiKvyua0VM+fhddcIgbHnc3PssgXJeTWFbcb9fydO8HgllZHQPFZRzdUrjTH0 gVtEYak6JYh6/I2qz34G3IVi3/Pwjl0VbnRF9ovEbHeRn/vSXVUc/52nop775U7oyjaz p9vj1o2SYmqnM33ndir1fapwbinKthOIwfiHm87lcpWCBHRPj4GpoyORglEePHQ1BMQb jQWK0YgRMuJsBmTMDg+bq2sfPxtGN1M8//RVYpiINABMO4oXBIcXVt+C7D11i+gDrpHV bIpK9pOYyuEc3oG0z5Ggyc1AUGTrQ0VNq0Wl4thZEIIbYLus1Geiv/fgi5ceuIzozQuk xhkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=4m9vuuD7oooyJxlMa5La4kHHKcoSZ2r+W/XOsdfyLYY=; b=MzGAa22JLFHaOakBS3y8KfjyiHrGtTGvTG4EhtZ6ILXW1gn+vDQkAP63/DLi475zbz 3aAd9LrzyYK1RWkYVrYMnacOh91A8NImfFoLjlPMv40vhtZPUAqpJS0Fijgx+662F8+O yz6qmpg2UrsWqKUP5j2Zl0ClXpvd5ABp2XUqIwPucsd3vz84fIAEw/r1siSw7v6vBrJl mKyat/QvwMetkOoDiKUPlQXt6Fa5z9NFwx5fMjnlNz//RtuAWQcnBkE3rQl+gx+0N0PB iUHiXmiuSfRydA2JXUlfIKoudyvKoHV6m9R0DsulHl7ANcs4k5P1sNbnDQ/0DKWYizPw sc1A== X-Gm-Message-State: APjAAAWOl5i/MtgjWCRIiF34R2Q2XDa4rTrRPmZaPYyYd/R9+Gz6Gqr9 fEOftqferRBQMYgeYQnzzAydOjkxK54= X-Google-Smtp-Source: APXvYqzLkZT9a88HthrVyo5BPXicbqcHVH3fPhJyhFknvYhmXNwjw12YGgNSSt3HZLD9GlzM3P/+Og== X-Received: by 2002:a6b:e706:: with SMTP id b6mr4077615ioh.236.1568984474264; Fri, 20 Sep 2019 06:01:14 -0700 (PDT) Received: from [10.0.0.10] (c-73-63-59-118.hsd1.ut.comcast.net. [73.63.59.118]) by smtp.gmail.com with ESMTPSA id y17sm1739700ioa.52.2019.09.20.06.01.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2019 06:01:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Web users as database users? From: Rob Sargent X-Mailer: iPhone Mail (16G102) In-Reply-To: Date: Fri, 20 Sep 2019 07:01:06 -0600 Cc: "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <28CB89D3-194A-420F-868A-0AFC169EF7E5@gmail.com> References: To: Tim Clarke List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Sep 20, 2019, at 6:15 AM, Tim Clarke wrote: >=20 >> On 20/09/2019 12:50, David Gallagher wrote: >> Hi - I=E2=80=99m working on a database that will be accessed via a web ap= p. >> I=E2=80=99m used to a setup where there is one account/role that the app w= ould >> use to access the database, but in my current scenario I=E2=80=99m intere= sted >> in row level security and auditing enforced by the database. In this >> scenario, would it make sense to have a user account on the database >> to mirror the user account from the web app? Is that an unusual practice?= >=20 >=20 > Not at all, we're doing it >=20 >=20 > Tim Clarke >=20 But you likely want a many-to-one mapping of actual user to permission group=