Showing posts with label XACML. Show all posts
Showing posts with label XACML. Show all posts

Jun 26, 2012

NOXACML Project

I just launched an open source project I've been thinking about for some time. This is the wiki description from the project site (It seems google doesn't index project sites).

====

XACML is an XML-based access control language; a non-extendable functional language with just enough semantics to express access control policy and no more. But those semantics come wrapped in visual barbed wire; a XML-based syntax so hideous it makes your eyes bleed. Compared to XACML even COBOL and MUMPS look good.

NoXacml is a terse dialect of XACML with a Java-like syntax that people can read and write easily. A compiler turns NoXacml programs into standard XML-based XACML text for conversing with machines.

The NoXACML compiler is still under development and the language itself is still evolving. There are no released versions yet.

Example


OASIS provides an extensive suite of conformance tests that were used to test the compilers. The following is one of the tests rewritten in NoXACML. In english, the policy is: "Julius Hibbert can read or write Bart Simpson's medical record." The XACML version is a whole page of inscrutable XML.

policy IIA001 denyOverrides{
rule IIA1
{
permit if ( "Julius Hibbert".isIn(subject.id) && "http://medico.com/record/patient/BartSimpson".uri().isIn(resource.id) && ( "read".isIn(action.id) || "write".isIn(action.id)
)
}
}

Details


NoXACML emerged from GOSAC-N (Government Open Source Access Control - Next Generation), a Technica project to provide an open source ABAC (attribute-based access control) system for the US government. GOSAC-N is available on forge.mil. It provides PEPs (Policy Enforcement Points), a PDP (Policy Decision Point) secured to stringent government specs via TLS and SAML2, and browser-based capabilities that will evolve into a full-featured PAP (Policy Administration Point) over time.

The first release was based on Sun's XACML interpreter. The second features a pair of compilers (for XACML 2.0 and 3.0) that compiles XACML to Java source. Compilation can be done off-line so that the PDP loads policies as Java byte-codes or on-the-fly where the PDP dynamically compiles XML files to byte codes for execution. The compilers are proprietary but the forge.mil site includes working binary copies. An AFCEA paper compares the XACML 2.0 compiler's performance with Sun's interpreter.

The compilers use JAXB to build a DOM model of XACML as its expression tree. The NoXACML compiler builds the same DOM model from NoXACL. The DOM model can then be compiled to Java or converted to the usual XML by JAXB's serialization for exchange as a standard language.

Mar 1, 2011

Compiling XACML to Java Source

XACML is an Oasis standard that is starting to gain popularity for controlling access to digital resources. There are several implementations but the most popular is Sun's XACML interpreter.
I've submitted a paper for this spring's AFCEA conference that describes a full XACML compiler that we expect to release as government open source on forge.mil soon. Although I developed it to make XACML more readable and amenable to easy debugging, not speed, the early non-optimized version is blazingly fast, far faster than the Sun interpreter.

The draft is available here. This was written before I started work on the Oasis Conformance Tests. That has now been completed and I'm updating the draft to describe the new version. I'll post it here when ready. Note Added 18 Mar 2011: The updated paper has been published to the link shown above.