Description
A sample application to help understand the development/deployment details to add Ranger authorization to an application will serve as a good reference.
To keep this simple, lets assume the following application:
- supports authorization of read/write/execute accesses to files
- uses an interface to authorize access to files (IAuthorizer)
- supports configuration to specify authorizer implementation
- when no authorizer is specified, will use a built-in authorizer (DefaultAuthorizer) that allows all accesses
Given this application, develop an authorizer implementation that uses Ranger policies to allow/deny access. Provide simple instructions to run the application with default authorizer and Ranger authorizer.