Skip to content

Commit

Permalink
logs
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jul 11, 2024
1 parent a7e798f commit f173415
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"clusters": 1,
"log": {
"logLevel": "info",
"logLevel": "trace",
"dumpLevel": "error"
},
"healthChecks": {
Expand Down
1 change: 1 addition & 0 deletions lib/api/apiUtils/authorization/permissionChecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ function processBucketPolicy(requestType, bucket, canonicalID, arn, bucketOwner,
let processedResult = results[requestType];
if (!bucketPolicy) {
processedResult = actionImplicitDenies[requestType] === false && aclPermission;
log.info('WE ARE IN THE NO BUCKET POLICY');
} else {
const bucketPolicyPermission = checkBucketPolicy(bucketPolicy, requestType, canonicalID, arn,
bucketOwner, log, request, actionImplicitDenies);
Expand Down
2 changes: 2 additions & 0 deletions lib/api/multiObjectDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ function multiObjectDelete(authInfo, request, log, callback) {
};
return vault.checkPolicies(requestContextParams, authInfo.getArn(),
log, (err, authorizationResults) => {
log.info('received authorization results', authorizationResults);
// there were no policies so received a blanket AccessDenied
if (err?.is.AccessDenied) {
objects.forEach(entry => {
Expand Down Expand Up @@ -606,6 +607,7 @@ function multiObjectDelete(authInfo, request, log, callback) {
}, {});
for (let i = 0; i < authorizationResults.length; i++) {
const result = authorizationResults[i];
log.info('checking authorization result', result);
// result is { isAllowed: true,
// arn: arn:aws:s3:::bucket/object,
// versionId: sampleversionId } unless not allowed
Expand Down

0 comments on commit f173415

Please sign in to comment.