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 1lBZuC-0005Ix-NG for pgsql-admin@arkaria.postgresql.org; Mon, 15 Feb 2021 09:10:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBZuB-0000L8-FP for pgsql-admin@arkaria.postgresql.org; Mon, 15 Feb 2021 09:10:55 +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 1lBZuB-0000Gt-5l for pgsql-admin@lists.postgresql.org; Mon, 15 Feb 2021 09:10:55 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lBZu9-0003wB-8I for pgsql-admin@lists.postgresql.org; Mon, 15 Feb 2021 09:10:54 +0000 Received: by mail-pg1-x530.google.com with SMTP id b21so3860030pgk.7 for ; Mon, 15 Feb 2021 01:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:date:in-reply-to:message-id :mime-version; bh=QLMEmJvEFdNoqu5DA5g5AmvwilmafnLjWu8WKbd7z/A=; b=iZhAe1XSLVxpLvZwdIFdsOopyMi90CP+Ho8sgUkSC7QKPzKXL1lf+Ubj/GL+955eXM cP+yid9fkWH6azTVVUlVNpS2IRHVHOaQiwoJFDjBJMbL/bFrEAAYjwM45spRwCSM8z5N TgNgkxSfSzSlAPZPPY5gT7G4HKJiiB/XOPE+ljp7UbLs82ayVbwcPlSWWVnoGJWf1uu6 ys86mW6UH6whY5hRx/fGS+CfJovONXH1h5UBWR6PkTRQSD0zWM+88hjqDdumGWCR4FpB 7w+M/Y12cRKCmA0WTBy2BeuWwk6yvSOXPXcsYynflpSyIUlFl1WBzSm8bg0upqSodqdR 3uCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:subject:date :in-reply-to:message-id:mime-version; bh=QLMEmJvEFdNoqu5DA5g5AmvwilmafnLjWu8WKbd7z/A=; b=ri+4YWBgvFa3uMKSGlJJ0hXhdvuTaZs7GjvbqhGKwuH22bxKY5ItIW1tpjcIlvHug+ LDf3azW5awLQEAX9zVDD0U3zr8K3celGftdk0vaby3jC4uSOK5f5jQaaW9qapB90JeT1 YRc2EoXcbfQM9mcgnvkY0DxdF9s3f4N3VDauFdXI/sWf1/AA04daAxerytPfCw8EKAUv 1eVLhNu8VzPT2U0rUrp3trDDsbmXfKyzaeQZmPARS0SL7qmfZJrF61nXmHPwVdCAiiZQ 5+zT/NTtHWJf6Bdrz6JnBQX9b2hjbuShv+7GhiUx3xkg+KJCLjeysFfkSQ1DbdRErKCq jEiw== X-Gm-Message-State: AOAM531rT53gFdneSnd9Spi2i4MO286rzwnfza3JJPSR3OMcQz1NOEDE FLKvaiFXvwA0Wa+80CgyfEvpXjZZiV8= X-Google-Smtp-Source: ABdhPJx6SnZ/8XMuDbxqOAHI/J/22p843OEeeHnmeXftz0TcLVkySU7CXMvjPEjBRjUa64QF3Dkqkg== X-Received: by 2002:a05:6a00:1a46:b029:1d5:9acd:798c with SMTP id h6-20020a056a001a46b02901d59acd798cmr14547157pfv.25.1613380251622; Mon, 15 Feb 2021 01:10:51 -0800 (PST) Received: from tim-desktop (106-69-100-146.dyn.iinet.net.au. [106.69.100.146]) by smtp.gmail.com with ESMTPSA id h20sm14260485pfv.164.2021.02.15.01.10.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Feb 2021 01:10:51 -0800 (PST) References: User-agent: mu4e 1.5.8; emacs 27.1.91 From: Tim Cross To: pgsql-admin@lists.postgresql.org Subject: Re: Audit preparation list Date: Mon, 15 Feb 2021 19:31:15 +1100 In-reply-to: Message-ID: <87eehhbsrs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Yambu writes: > Hello > > If auditing on our postgres instance is to be done , what are the things we > should make sure that we fix or correct to make sure we pass the audit? First thing to note is that most decent audits are not a binary pass/fail type situation. Auditors will almost always find someting which could be improved. Auditing is a risk management process and will typically report risks on some scale, such as high, medium or low. These values are typically determined by a combination of likelihood, impact and controls (mitigation). Doing things to 'pass' the audit is the wrong approach. An audit is a good opportunity for an external review of your policies, procedures and systems. If changes need to be made to 'pass' the audit, they are likely changes which should be done to protect the business. The sort of information an auditor will require depends a lot on the type of audit and the type of business being audited. For example, the priorities and risks in a medical clinic are very different to those in a credit processing centre. Without more details about the type of business and type of audit, it is difficult to provide any precise information. Generally, the auditor will provide some details on what they will be wanting to see prior to the audit. One thing auditors typically want to see are your policies and procedures. Auditors hate 'ad hoc' processes - processes which are not documented and where it assumed all those executing the process just 'know' what to do. They also want to see that policies and processes are reviewed and updated regularly. You might think that as a DBA or a developer, you don't need to worry about policies and procedures. This is probably incorrect. Typically, there will be policies and procedures covering things like change management (who, what when), access controls, disaster recovery and business continuity plans (backup, restore, what to do in a disaster and what to do to keep the business running while the disaster recovery process executes - noting that 'disaster' is not just flood, fire, etc. A disaster is anything which would prevent the business from operating for an extended period of time and can also include things like cyber attack, data breaches etc), monitoring and application of security patches etc. The first audit, which this sounds like it might be, should really be seen as an information gather process that will identify areas of policy and procedures which can be improved. The more important audit is the second and later audits, which will show how much progress has been made towards achieving those improvements. Note also that it is common for the auditor to get things incorrect initially. In good audits, there will be a review stage where you are given the opportunity to clarify, correct and provide additional context for the initial findings. The biggest challenge with an audit is providing the information with sufficient detail to assist the auditory to understand matters, but not with so much information they become overwhelmed or draw misleading conclusions. Often, volunteering information can be a bad idea. Provide everything asked for and provide it as clearly and concisely as possible, but don't try to guess at what they want and add additional information which has not been requested. Of course, some auditors are better than others. An audit can be a stressful experience. With luck, you will get an experienced and well trained professional. Hopefully, your management isn't trying to save money by going cheap! -- Tim Cross