Posts

Showing posts from November, 2013

OPA for HTTP Authorization

Open Policy Agent[1] is a promising, light weight and very generic policy engine to govern authorization is any type of domain. I found this comparion[2] very attractive in evaluating OPA for a project I am currently working on, where they demonstrate how OPA can cater same functionality defined in RBAC, RBAC with Seperation of Duty, ABAC and XACML.  
Here are the steps to a brief demonstration of OPA used for HTTP API authorization based on the sample [3], taking it another level up.
Running OPA Server First we need to download OPA from [4], based on the operating system we are running on.  For linux, curl -L -o opa https://github.com/open-policy-agent/opa/releases/download/v0.10.3/opa_linux_amd64 Make it executable, chmod 755 ./opa Once done, we can start OPA policy engine as a server.
./opa run --server Define Data and Rules Next we need to load data and authorization rules to the server, so it can make decisions. OPA defines these in files in the format of .rego. Below is a sample …

Install Liferay over a MySQL Database

Image
With this post I will share how to get started with Liferay Portal including initial configurations and login.

Environment: Linux

Pre-requisites :

MySQL installation (Refer this post for steps to install MySQL)Java 1.6 or above
Let's download the Liferay pack from here.

I got the Community Edition of bundle with Tomcat.

Extract it to a folder of your choice, let's call the extracted folder LR_HOME. Ok, the resources are ready.. Let's go..

MySQL Login to MySQL. If you just installed following command will do.

mysql -uroot -p
Enter the password (default root).

Create database to be used for Liferay.

create database lportal;
Create user for Liferay.
create user 'lr_user'@'localhost' identified by 'user123';

Give access to the created database for this user.
grant all privileges on lportal.* to 'lr_user'@'localhost' with grant option;
Mysql work is over now. Let's go to Liferay.

LifeRay Go to LR_HOME.
Inside LR_HOME create file with the …