org.apache.hadoop.fs.s3a.audit.S3AAuditConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hadoop-aws Show documentation
Show all versions of hadoop-aws Show documentation
This module contains code to support integration with Amazon Web Services.
It also declares the dependencies needed to work with AWS services.
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hadoop.fs.s3a.audit;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.InterfaceStability;
@InterfaceAudience.LimitedPrivate("S3A auditing extensions")
@InterfaceStability.Unstable
public final class S3AAuditConstants {
private S3AAuditConstants() {
}
/**
* What to look for in logs for ops outside any audit.
* {@value}.
*/
public static final String UNAUDITED_OPERATION = "unaudited operation";
/**
* Is auditing enabled?
* Value: {@value}.
*/
public static final String AUDIT_ENABLED = "fs.s3a.audit.enabled";
/**
* Default auditing flag.
* Value: {@value}.
*/
public static final boolean AUDIT_ENABLED_DEFAULT = true;
/**
* Name of class used for audit logs: {@value}.
*/
public static final String AUDIT_SERVICE_CLASSNAME =
"fs.s3a.audit.service.classname";
/**
* Classname of the logging auditor: {@value}.
*/
public static final String LOGGING_AUDIT_SERVICE =
"org.apache.hadoop.fs.s3a.audit.impl.LoggingAuditor";
/**
* Classname of the No-op auditor: {@value}.
*/
public static final String NOOP_AUDIT_SERVICE =
"org.apache.hadoop.fs.s3a.audit.impl.NoopAuditor";
/**
* List of extra AWS SDK request handlers: {@value}.
* These are added to the SDK request chain after
* any audit service.
*/
public static final String AUDIT_REQUEST_HANDLERS =
"fs.s3a.audit.request.handlers";
/**
* Should operations outside spans be rejected?
* This is for testing coverage of the span code; if used
* in production there's a risk of unexpected failures.
* {@value}.
*/
public static final String REJECT_OUT_OF_SPAN_OPERATIONS
= "fs.s3a.audit.reject.out.of.span.operations";
/**
* Should the logging auditor add the HTTP Referrer header?
* {@value}.
*/
public static final String REFERRER_HEADER_ENABLED
= "fs.s3a.audit.referrer.enabled";
/**
* Should the logging auditor add the HTTP Referrer header?
* Default value: {@value}.
*/
public static final boolean REFERRER_HEADER_ENABLED_DEFAULT
= true;
/**
* List of audit fields to strip from referrer headers.
* {@value}.
*/
public static final String REFERRER_HEADER_FILTER
= "fs.s3a.audit.referrer.filter";
/**
* Span name used during initialization.
*/
public static final String INITIALIZE_SPAN = "initialize";
/**
* Operation name for any operation outside of an explicit
* span.
*/
public static final String OUTSIDE_SPAN =
"outside-span";
}