Skip to content

Conversation

nmoutschen
Copy link

@nmoutschen nmoutschen commented Sep 27, 2023

Issue #, if available: fixes #520

Description of changes:

Add events for VPC Lattice requests and response, based on https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html and tests against a running Lambda function.

@codecov-commenter
Copy link

codecov-commenter commented Sep 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1dca084) 72.90% compared to head (f3eddf5) 72.63%.
Report is 1 commits behind head on main.

❗ Current head f3eddf5 differs from pull request most recent head 1848e40. Consider uploading reports for the commit 1848e40 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #521      +/-   ##
==========================================
- Coverage   72.90%   72.63%   -0.27%     
==========================================
  Files          26       26              
  Lines        1421     1407      -14     
==========================================
- Hits         1036     1022      -14     
  Misses        314      314              
  Partials       71       71              

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

@bmoffatt bmoffatt added enhancement type/events issue or feature request related to the events package labels Nov 30, 2023
Comment on lines +34 to +41
// VpcLatticeRequestIdentity contains information about the caller
type VPCLatticeRequestIdentity struct {
SourceVPCARN string `json:"sourceVpcArn"`
Type string `json:"type"`
Principal string `json:"principal"`
SessionName string `json:"sessionName"`
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

reviewing - https://docs.aws.amazon.com/vpc-lattice/latest/ug/lambda-functions.html#receive-event-from-service

missing identity fields

principalOrgID – The ID of the organization for the authenticated principal. Present only if AWS authentication is successful.

x509IssuerOu – The issuer (OU).

x509SanDns – The subject alternative name (DNS).

x509SanNameCn – The issuer alternative name (Name/CN).

x509SanUri – The subject alternative name (URI).

x509SubjectCn – The subject name (CN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement type/events issue or feature request related to the events package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add support for AWS VPC Lattice events
3 participants