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 1gleOF-0001zw-6Q for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2019 18:33:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gleOC-0007IH-UP for pgsql-general@arkaria.postgresql.org; Mon, 21 Jan 2019 18:33:40 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gleOA-0007I7-QL for pgsql-general@lists.postgresql.org; Mon, 21 Jan 2019 18:33:40 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gleO7-0008Ke-3M for pgsql-general@lists.postgresql.org; Mon, 21 Jan 2019 18:33:38 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4D527218FE; Mon, 21 Jan 2019 13:33:33 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 21 Jan 2019 13:33:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=s 4G4eR40fr++wvDSli2jEiM3ksCKAsO+ddOO6qGK6RU=; b=nITM5HDhnmBlpFsyA AquSAMM5mgv73bIhRPZde3VTpDLo4DgoSkITzbFkOksI+KkM+s7jF8dOFkJRLbZZ /rLSUAy8J3NLR/vU2wMY4VriO6APx3qKZ89LGgxGUAxfSC7LVpKdsp1ACsfuh9J2 9Fe7rjg07WL7onlg5xqDo6AK+IgccQcc04647eWVwQH/kC79UQ7f9ptAnmOvARKX jEWkEo0tXyQNkLsrmSTdVaKIqXpuQPY2geKAzXvvjqucL3hr3KbysOgtQFFdyL36 0vf6VoQ3Ncq+FraYfooarHefAgyENAOLWZ7deYhx3M1dOvLu9jwukAsYhu201rng JyQlw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=s4G4eR40fr++wvDSli2jEiM3ksCKAsO+ddOO6qGK6 RU=; b=xOnt/YIpjxo0QBLBvng2zXSc+6DtkkRYZTNNddyje126zbImE96/8b5tR qQlvMgsNZ55ACiBQSggQDcjPt8q/zN1EbyHGnVN2RcnE3twj0crjCcZOpTzt64t9 ybLRGudehpavSfv38N1/hWa7r2UQlYiudlawHp0/oOK/oyHqekM0MD5kn3V8jP/d juadtLy9Q1LQHfxuR2fIfW/tJ/47BtsaicVZuarDs5evBl9Q8cLVD8vkieKLHRgS EiJiPH2ISpMayErRXfGuKIExpXlCDa6ozK6P5JX+IaWC9tu5IWD/CvvObSrgOrY6 0/zOV2pd8o3vVUHcx/jYa6As5gV7w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrheeigdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefheenucfhrhhomh eptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghv vghrrdgtohhmqeenucfkphephedtrdduleejrdektddrvdenucfrrghrrghmpehmrghilh hfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhu shhtvghrufhiiigvpedt X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 01691100E5; Mon, 21 Jan 2019 13:33:29 -0500 (EST) Subject: Re: Manage PostgreSQL Database for GITLAB Application? To: "Hilbert, Karin" , "pgsql-general@lists.postgresql.org" References: From: Adrian Klaver Message-ID: <0c744ddd-9d9c-d4b2-4351-a8efb3ab497f@aklaver.com> Date: Mon, 21 Jan 2019 10:33:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 1/21/19 9:26 AM, Hilbert, Karin wrote: > Does anyone manage a PostgreSQL database for a GITLAB application? Could you be more specific about the above?: 1) Are talking about installing GitLab as a self-managed server? 2) Or an application that is running over top of GitLab? > > I have PostgreSQL v9.6 installed on my server & we are trying to migrate > a GITLAB database there. > > The developer says that we need to use the public schema instead of the > schema of the same name as the application user. > > The schema that he provided me to restore also is revoking all > privileges from the database owner & instead granting all privileges to > PUBLIC. > > Has anyone else run across this?  I always thought that granting > privileges to PUBLIC is a bad security thing to do? Well this really depends on the needs of the application. I would ask the developer how security is handled? > > If anyone can offer any thoughts regarding this, it would be greatly > appreciated. > > Thanks, Karin > > > Karin Hilbert > Database Specialist > Administrative Information Services > Pennsylvania State University > 25 Shields Bldg., University Park, PA  16802 > Work - 814-863-3633 > Email - ioh1@psu.edu > IM - ioh1@chat.psu.edu > -- Adrian Klaver adrian.klaver@aklaver.com