180 likes | 433 Views
Argus PEP Client API (Java). Valery Tschopp (SWITCH) valery.tschopp@switch.ch. Outline. Argus Argus Services (PAP, …) Authorization Policies Argus PEP Client API XACML Object Model Authorization Decision Simple Java Example Demo. Argus. A generic authorization system
E N D
ArgusPEP Client API (Java) Valery Tschopp (SWITCH) valery.tschopp@switch.ch
Outline • Argus • Argus Services (PAP, …) • Authorization Policies • Argus PEP Client API • XACML Object Model • Authorization Decision • Simple Java Example Demo Argus PEP Client API, EGI Community Forum 2012, München
Argus • A generic authorization system • Built on top of a XACML policy engine • Renders consistent authorization decisions based on XACML policies Argus PEP Client API, EGI Community Forum 2012, München
Argus Components • Argus PAP: Policy Administration Point • Provides administrators with the tools to author policies (pap-admin) • Stores and manages authored XACML policies • Provides managed authorization policies to other authorization service components (other PAPs or PDP) Argus PEP Client API, EGI Community Forum 2012, München
Argus Components (cont.) • Argus PDP: Policy Decision Point • Policy evaluation engine • Receives authorization requests from the PEP • Evaluates the authorization requests against the XACML policies retrieved from the PAP • Renders the authorization decision Argus PEP Client API, EGI Community Forum 2012, München
Argus Components (cont.) • Argus PEP: Policy Execution Point • Client/Server architecture • Lightweight PEP client libraries (C and Java) • PEP Server receives the authorization requests from the PEP clients • Transforms lightweight internal request into XACML • Applies a configurable set of filters (PIPs) to the incoming requests • Asks the PDP to render an authorization decision • If requested by the policy, applies the obligation handler (OH) to determine the user mapping Argus PEP Client API, EGI Community Forum 2012, München
Authorization Policies Argus is designed to answer the question: Can user X perform action Y on resource Z ? • Argus policies contain rules that state which actions can be performed on which resources by which users. • Argus uses XACML v.2 as the policy language. • However, XACML is hard to read and write, so we developed a Simplified Policy Language (SPL) Argus PEP Client API, EGI Community Forum 2012, München
Authorization Examples • Can user X… • execute on this worker node (WN) ? • submit a job to this CREAM CE ? • access this storage area ? • submit a job to this WMS instance ? • User X is banned ! • Is not allowed to do anything on any resource! Argus PEP Client API, EGI Community Forum 2012, München
Policies for the Demo The Argus PAP is loaded with the following SPL authorization policies: # glite Example (Decision, and user mapping) resource "test-glite" { obligation "http://glite.org/xacml/obligation/local-environment-map" {} action "test" { rule permit { vo=“dteam" } } } # EMI Example (Decision only, NO USER MAPPPING) resource "test-emi" { action "test" { rule permit { subject="CN=Valery Tschopp,O=SWITCH,C=ch" } } } Argus PEP Client API, EGI Community Forum 2012, München
Argus PEP Client • Argus PEP Client API • Communicate with the Argus PEP Server • HTTPS connection with client authentication • XACML handled as an object model • Create authorization request and submit it • Parse the authorization response • Enforce the decision locally Argus PEP Client API, EGI Community Forum 2012, München
Argus PEP Client API • XACML Object Model Argus PEP Client API, EGI Community Forum 2012, München
Argus PEP Client API (cont.) • XACML Profiles • Define the XACML attribute identifiers, datatypes, and their semantic • gLite XACML Profile for CEhttps://edms.cern.ch/document/1078881 • gLite XACML Profile for WNhttps://edms.cern.ch/document/1058175 • EMI Common XACML Authorization Profilehttps://twiki.cern.ch/twiki/bin/view/EMI/CommonXACMLProfileV1_1 Argus PEP Client API, EGI Community Forum 2012, München
Authorization Decision Processing • If the decision is Permit, then the PEP client SHALL permit access. If obligations accompany the decision, then the PEP client SHALL permit access only if it understands and it can and will enforce those obligations. • If the decision is Deny, then the PEP client SHALL deny access. • If the decision is NotApplicable, meaning that no policy apply, then the PEP client SHALL deny access. • If the decision is Inderterminate, then the PEP client SHALL deny access. The decision status message and status code should be used to produce an error message. Argus PEP Client API, EGI Community Forum 2012, München
Simple Argus Java PEP Client Demo Time ^_^ Argus PEP Client API, EGI Community Forum 2012, München
Documentation • General documentation https://twiki.cern.ch/twiki/bin/view/EGEE/AuthorizationFramework • PAP admin Tool https://twiki.cern.ch/twiki/bin/view/EGEE/AuthZPAPCLI • Argus Policy Management Tutorialhttp://bit.ly/argus-policies • Argus PEP client API for Javahttps://twiki.cern.ch/twiki/bin/view/EGEE/AuthZPEPJavaAPI Argus PEP Client API, EGI Community Forum 2012, München
Support • The documentation is your friend ;-) • Support mailing list (e-group): argus-support@cern.ch • GGUS Tickets (ARGUS Support Unit) https://ggus.eu Argus PEP Client API, EGI Community Forum 2012, München
Thank you EMI is partially funded by the European Commission under Grant Agreement INFSO-RI-261611 Argus PEP Client API, EGI Community Forum 2012, München