least-privilege

Running Heroku Postgres with least privilege

本小妞迷上赌 提交于 2020-01-24 05:20:08
问题 Can I connect to a Heroku Postgres database via an web/application without the risk of dropping a table? I'm building a Heroku application for a third party which uses Heroku Postgres for the backend. The third party are very security sensitive so I'm looking at applying "Layered security" throughout the application. So for example checking for SQL injection attacks at the web/application layer. Applying a "Layered security" approach I should also secure the database in case a potential SQL

I want run my function in limited account with administrator permission

耗尽温柔 提交于 2019-12-11 07:18:51
问题 I want run my program under a limited user account but with administrator privileges on windows XP. I can't find an answer. I think I can use two ways: Run my program by another way like a program or a service Run my function with some method like PrincipalPermission space or something like this But I can't solve this problem. 回答1: One way to solve this is to fragment your program into two parts. One part as a windows service and the one as a user app. You can set the service to run as a

Identity Server by leastprivilege doesn't work properly on Azure

橙三吉。 提交于 2019-12-07 15:28:46
问题 I am trying to implement an architecture that follows the OAUTH2/OIDC protocol. In order to do that, I have STS(Identity Server v3 by leastprivilege), ASP.NET WebApi and ASP.NET MVC application for a client. My goal was to have the STS and REST service hosted on Azure so different clients can use them as public services. So far so good. Everything seemed to work smoothly and perfectly before I decided to add a new client that uses one of the redirection flows - Authorization Code flow. I

Virtual Service Account without Network Access, like NT AUTHORITY\\LocalService

只谈情不闲聊 提交于 2019-12-05 20:56:48
Background: I'm writing a service and want to give it as few privileges as necessary. Virtual Accounts (sometimes "Virtual Service Accounts") are sparsely documented feature new to Windows 7/2008R2 that are automatically managed accounts for services that need minimal privileges but access the network with a computer identity in a domain environment. My service doesn't need network access, so I'm using LocalService, but I don't like the fact that if I grant access to a file/etc I granting access to all services running as that account. Is there a least privileged account I can use? You don't

Identity Server by leastprivilege doesn't work properly on Azure

主宰稳场 提交于 2019-12-05 20:53:48
I am trying to implement an architecture that follows the OAUTH2/OIDC protocol. In order to do that, I have STS(Identity Server v3 by leastprivilege), ASP.NET WebApi and ASP.NET MVC application for a client. My goal was to have the STS and REST service hosted on Azure so different clients can use them as public services. So far so good. Everything seemed to work smoothly and perfectly before I decided to add a new client that uses one of the redirection flows - Authorization Code flow. I wanted to take advantage of the refresh token option that it offers. I wanted to serve short life access

Restricted PostgreSQL permissions for web app

五迷三道 提交于 2019-11-30 05:09:21
Goal Create a database with three users and restrict their privileges (I'm just thinking out loud, so my user separation is also open to correction): Superuser - this user allows for the very initial provisioning of the database. Create the application database, create the other users, set their privileges. Default postgres superuser works for me, so this one is done. Administrator - this user has access only to the database that was created during provisioning. Administrator can CRUD all data in all tables, and can also CRUD tables, etc. "Superuser for only this database" type of situation.

Restricted PostgreSQL permissions for web app

China☆狼群 提交于 2019-11-29 02:56:10
问题 Goal Create a database with three users and restrict their privileges (I'm just thinking out loud, so my user separation is also open to correction): Superuser - this user allows for the very initial provisioning of the database. Create the application database, create the other users, set their privileges. Default postgres superuser works for me, so this one is done. Administrator - this user has access only to the database that was created during provisioning. Administrator can CRUD all