Search in sources :

Example 1 with RangerDefaultAuditHandler

use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.

the class StormRangerPlugin method init.

// this method isn't expected to be invoked often.  Per knox design this would be invoked ONCE right after the authorizer servlet is loaded
@Override
public synchronized void init() {
    if (!initialized) {
        // mandatory call to base plugin
        super.init();
        // One time call to register the audit hander with the policy engine.
        super.setResultProcessor(new RangerDefaultAuditHandler());
        // this needed to set things right in the nimbus process
        if (KerberosName.getRules() == null) {
            KerberosName.setRules("DEFAULT");
        }
        initialized = true;
        LOG.info("StormRangerPlugin initialized!");
    }
}
Also used : RangerDefaultAuditHandler(org.apache.ranger.plugin.audit.RangerDefaultAuditHandler)

Example 2 with RangerDefaultAuditHandler

use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.

the class RangerKylinAccessRequest method init.

@Override
public void init() {
    super.init();
    RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
    super.setResultProcessor(auditHandler);
}
Also used : RangerDefaultAuditHandler(org.apache.ranger.plugin.audit.RangerDefaultAuditHandler)

Example 3 with RangerDefaultAuditHandler

use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.

the class RangerSqoopAccessRequest method init.

@Override
public void init() {
    super.init();
    RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
    super.setResultProcessor(auditHandler);
}
Also used : RangerDefaultAuditHandler(org.apache.ranger.plugin.audit.RangerDefaultAuditHandler)

Example 4 with RangerDefaultAuditHandler

use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.

the class RangerYarnAuditHandler method init.

@Override
public void init() {
    super.init();
    RangerDefaultAuditHandler auditHandler = new RangerDefaultAuditHandler();
    super.setResultProcessor(auditHandler);
}
Also used : RangerDefaultAuditHandler(org.apache.ranger.plugin.audit.RangerDefaultAuditHandler)

Example 5 with RangerDefaultAuditHandler

use of org.apache.ranger.plugin.audit.RangerDefaultAuditHandler in project ranger by apache.

the class RangerAuthorizer method init.

public void init() {
    if (plugin == null) {
        synchronized (RangerAuthorizer.class) {
            if (plugin == null) {
                plugin = new RangerBasePlugin("sampleapp", "sampleapp");
                plugin.setResultProcessor(new RangerDefaultAuditHandler());
                plugin.init();
            }
        }
    }
}
Also used : RangerDefaultAuditHandler(org.apache.ranger.plugin.audit.RangerDefaultAuditHandler) RangerBasePlugin(org.apache.ranger.plugin.service.RangerBasePlugin)

Aggregations

RangerDefaultAuditHandler (org.apache.ranger.plugin.audit.RangerDefaultAuditHandler)16 AccessDeniedException (org.apache.hadoop.hbase.security.AccessDeniedException)4 RangerAccessResultProcessor (org.apache.ranger.plugin.policyengine.RangerAccessResultProcessor)3 RangerBasePlugin (org.apache.ranger.plugin.service.RangerBasePlugin)3 IOException (java.io.IOException)2 CoprocessorException (org.apache.hadoop.hbase.coprocessor.CoprocessorException)2 AccessControlProtos (org.apache.hadoop.hbase.protobuf.generated.AccessControlProtos)2 AccessControlException (org.apache.hadoop.security.AccessControlException)2 GrantRevokeRequest (org.apache.ranger.plugin.util.GrantRevokeRequest)2 RangerPerfTracer (org.apache.ranger.plugin.util.RangerPerfTracer)2 ServicePolicies (org.apache.ranger.plugin.util.ServicePolicies)2 JsonParseException (com.google.gson.JsonParseException)1 TypeToken (com.google.gson.reflect.TypeToken)1 Type (java.lang.reflect.Type)1 Set (java.util.Set)1 Subject (javax.security.auth.Subject)1 Configuration (org.apache.hadoop.conf.Configuration)1 UserGroupInformation (org.apache.hadoop.security.UserGroupInformation)1 ListenerName (org.apache.kafka.common.network.ListenerName)1 JaasContext (org.apache.kafka.common.security.JaasContext)1