Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM3mT-0006qp-51 for pgsql-admin@arkaria.postgresql.org; Wed, 08 Apr 2020 06:01:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM3mS-0008Ns-0k for pgsql-admin@arkaria.postgresql.org; Wed, 08 Apr 2020 06:01:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM3mR-0008Nk-EF for pgsql-admin@lists.postgresql.org; Wed, 08 Apr 2020 06:01:43 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jM3mK-0003u8-JG for pgsql-admin@postgresql.org; Wed, 08 Apr 2020 06:01:42 +0000 Received: by mail-lf1-x144.google.com with SMTP id k28so4185111lfe.10 for ; Tue, 07 Apr 2020 23:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=6+Vays8g0dQJ6dL/lPDu7RwP67k4aCzz4hikuQp6kmg=; b=mqJYiRU4sSczXsJ8XlXR7enhgNgaFV5kTr6xyLhayDWe5belQoChUvuFMRW2yAX0C0 VzlD736xNOA4Edo2iIx0okUg2lj0gGHc2OrJX7wMuStsDXRyYmI21ElIzJaXE1X9ovC9 Ah63TjrSFxJhY1R9EEqaRuG8GriItDknzD3twkJWC1iHeSS/xjukNvUacFO05EAp9yFH sb10zqcI4P+USSCxMnGzgVOtaPgNNgDRm8IurfX67fi1gtIy6q6SDtwg0TOZ8l7t5i5I BZKLYfuF2WDY7AEnyeP8iJAWcwJYINyMp8mBTNJZ9AZhr6x8y6dy/PGyB9naxsV82Tg1 Mmkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=6+Vays8g0dQJ6dL/lPDu7RwP67k4aCzz4hikuQp6kmg=; b=qpU4k1PAmeoP/BWpfODvqPUdWNTH/7xMrMjHrqrTkLQ7QzU0XLF7IQ2y4haF9nuXJ+ ZXPnxdvQgnexH6wFGdOzBd/kIEG5XCGUDY7RBxYEWI0cdS/bLELirOsbOwr5z3d6yK8W NcjF/Pvq2JJF2g1xTRLNn7Z7yQS2o+aj0M6N4QIkpdh4+r57Satenx0X2W1oLcMur9lZ DzKFb6I0FG8Q5dc2XKPDGstSUWMKEb3KdOFknGAsXfx89dmT4r3vAcn+t2atKEx21Ik6 i6Wh+42r0ywY4VwdUpWgN/xzKvS0F8qhtyUnillQE1n0bmYU0hhd/iGiAZf/Ygr1bg0z yf2Q== X-Gm-Message-State: AGi0PuZZ8b5OL8wKpig/h+e/M17kbe/gfdRmqhvttO4MsDWi0gdCxl88 lkeRd+VOUK1k2ZssKzxo2Lo= X-Google-Smtp-Source: APiQypIPBjDCWRZqC8jSQs0Q6ZcRnk/NjdbpHfBgEQSuscoAGBTINVJBxqDSQxnrG446/d3s8G49bQ== X-Received: by 2002:a19:6746:: with SMTP id e6mr3475158lfj.43.1586325694090; Tue, 07 Apr 2020 23:01:34 -0700 (PDT) Received: from [192.168.10.104] (120-118-157-37.dyn.estpak.ee. [37.157.118.120]) by smtp.gmail.com with ESMTPSA id v9sm12996152ljj.31.2020.04.07.23.01.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2020 23:01:33 -0700 (PDT) From: Toomas Kristin Content-Type: multipart/alternative; boundary="Apple-Mail=_138640C9-ADFB-4FC9-89FB-1AE990696F3B" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Vault or AWS/IAM Date: Wed, 8 Apr 2020 09:01:32 +0300 References: <017A7B80-E310-4FD9-962C-DD5B3562C90B@gmail.com> To: Prince Pathria , pgsql-admin In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3608.40.2.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_138640C9-ADFB-4FC9-89FB-1AE990696F3B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Yes, at case of IAM there is vendor lock and IAM won=E2=80=99t work for = multi-cloud infra and those are very strong arguments for Vault. However = thing that makes me concern about Vault is that the application is going = to behave as DBA - it has root access for database that creates and = drops users, grants and revokes accesses. Due to root credentials are = stored inside of Vault than those can be easily compromised because of a = mistake in configuration or a bug in application. And process list = doesn=E2=80=99t provide any understanding who is the person/application = who executed the query. Or am I over-concerning here? BR, Toomas > On 8. Apr 2020, at 00:33, Prince Pathria = wrote: >=20 > I would suggest going for Vault/Secrets manager. > Using IAM can lock you to use only RDS.=20 > For a case where you're using hybrid/multi-cloud infrastructure, IAM = won't fit in. > Or if you're completely on AWS, there have been cases where = organisations jump back to Postgres on EC2 from RDS for costs and = performance reason. At least no change of code is required in case of = Vault/Secrets manager.=20 >=20 > Using secrets manager over vault also has some advantages, like = managing 1 or maybe 2(in case you're using some unmanaged service as = vault backend) less components in your infrastructure. But again secrets = manager isn't a good option if you're using multi-cloud/hybrid = infrastructure. >=20 > Happy to help :) > Prince Pathria > Systems Engineer > Evive > +91 9478670472 > goevive.com >=20 >=20 > On Tue, Apr 7, 2020 at 12:13 PM Toomas Kristin = > wrote: > Hi, >=20 > I hope you all are well. Basically I am considering to implement a = centralised authentication solution for AWS/RDS/PostgreSQL. Last two = options on table are Vault and IAM. Have you made any similar decision = and can you share your experience? >=20 > BR, > Toomas >=20 >=20 >=20 --Apple-Mail=_138640C9-ADFB-4FC9-89FB-1AE990696F3B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

Yes, = at case of IAM there is vendor lock and IAM won=E2=80=99t work for = multi-cloud infra and those are very strong arguments for Vault. However = thing that makes me concern about Vault is that the application is going = to behave as DBA - it has root access for database that creates and = drops users, grants and revokes accesses. Due to root credentials are = stored inside of Vault than those can be easily compromised because of a = mistake in configuration or a bug in application. And process list = doesn=E2=80=99t provide any understanding who is the person/application = who executed the query. Or am I over-concerning here?

BR,
Toomas

On 8. Apr 2020, at 00:33, = Prince Pathria <prince.pathria@goevive.com> wrote:

I would suggest going for = Vault/Secrets manager.
Using IAM can lock you to use only = RDS. 
For a case where you're using = hybrid/multi-cloud infrastructure, IAM won't fit in.
Or if = you're completely on AWS, there have been cases where organisations jump = back to Postgres on EC2 from RDS for costs and performance reason. At = least no change of code is required in case of Vault/Secrets = manager. 

Using secrets manager over = vault also has some advantages, like managing 1 or maybe 2(in case = you're using some unmanaged service as vault backend) less = components in your infrastructure. But again secrets manager isn't a = good option if you're using multi-cloud/hybrid infrastructure.

Happy to help :)
Prince Pathria Systems Engineer Evive +91 9478670472 goevive.com

On Tue, Apr 7, 2020 at 12:13 PM Toomas = Kristin <toomas.kristin@gmail.com> wrote:
Hi,

I hope you all are well. Basically I am considering to implement a = centralised authentication solution for AWS/RDS/PostgreSQL. Last two = options on table are Vault and IAM. Have you made any similar decision = and can you share your experience?

BR,
Toomas




= --Apple-Mail=_138640C9-ADFB-4FC9-89FB-1AE990696F3B--