Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
chore: fix spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Dec 18, 2019
1 parent 83e2b31 commit d8eeb89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import com.nike.backstopper.apierror.ApiError;
import com.nike.backstopper.exception.ApiException;
import com.nike.cerberus.domain.DomainConstants;
import com.nike.cerberus.domain.EncryptedAuthDataWrapper;
import com.nike.cerberus.domain.IamRoleCredentials;
import com.nike.cerberus.event.AuditLoggingFilterDetails;
Expand Down Expand Up @@ -38,12 +37,6 @@ public AwsIamKmsAuthV1Controller(

@RequestMapping(method = POST, consumes = APPLICATION_JSON_VALUE)
public EncryptedAuthDataWrapper authenticate(@RequestBody IamRoleCredentials request) {
String iamPrincipalArn =
String.format(
DomainConstants.AWS_IAM_ROLE_ARN_TEMPLATE,
request.getAccountId(),
request.getRoleName());

EncryptedAuthDataWrapper authResponse;
try {
authResponse = authenticationService.authenticate(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package com.nike.cerberus.event;

import com.nike.cerberus.security.CerberusPrincipal;
import java.io.Serializable;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
Expand All @@ -27,8 +28,9 @@
/** An event that can be used to describe what a principal is doing with the API */
@Data
@Builder
public class AuditableEventContext {
public class AuditableEventContext implements Serializable {

private static final long serialVersionUID = 2906382176272161512L;
public static final String UNKNOWN = "_unknown";

private Object principal;
Expand Down

0 comments on commit d8eeb89

Please sign in to comment.