Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audit log support #806

Merged
merged 16 commits into from
Oct 3, 2024
Merged

Audit log support #806

merged 16 commits into from
Oct 3, 2024

Conversation

sandeep-paliwal
Copy link
Contributor

DO NOT MERGE (util we have service deployment in place)
Support to send audit log events on app deploy.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (26e8172) to head (19d61a1).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #806   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           56        57    +1     
  Lines         3243      3323   +80     
  Branches       617       641   +24     
=========================================
+ Hits          3243      3323   +80     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

test/commands/app/deploy.test.js Outdated Show resolved Hide resolved
src/commands/app/deploy.js Outdated Show resolved Hide resolved
@amulyakashyap09 amulyakashyap09 merged commit 32fdd10 into master Oct 3, 2024
8 checks passed
* @param {string} env valid env stage|prod
*/
async function sendAuditLogs (accessToken, logEvent, env = 'prod') {
const url = AUDIT_SERVICE_ENPOINTS[env]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be null, what do you do if your not passed 'prod' or 'stage'
You should just default to prod ...

const url = env === 'stage' ? AUDIT_SERVICE_ENPOINTS.stage : AUDIT_SERVICE_ENPOINTS.prod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants