Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .license_header_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@@===----------------------------------------------------------------------===@@
@@
@@ This source file is part of the SwiftAWSLambdaRuntime open source project
@@
@@ Copyright SwiftAWSLambdaRuntime project authors
@@ Copyright (c)Amazon.com, Inc. or its affiliates.
@@ Licensed under Apache License v2.0
@@
@@ See LICENSE.txt for license information
@@ See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
@@
@@ SPDX-License-Identifier: Apache-2.0
@@
@@===----------------------------------------------------------------------===@@
1 change: 1 addition & 0 deletions .licenseignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ Package.resolved
**/ResourcePackaging/hello.txt
.mailmap
.swiftformat
**/*.json
3 changes: 2 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ Tomer Doron <[email protected]> <[email protected]>
Tomer Doron <[email protected]> <[email protected]>
Tomer Doron <[email protected]> <[email protected]>
Fabian Fett <[email protected]> <[email protected]>
Fabian Fett <[email protected]> <[email protected]>
Fabian Fett <[email protected]> <[email protected]>
Natan Rolnik <[email protected]> <[email protected]>
7 changes: 4 additions & 3 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Code of Conduct

The code of conduct for this project can be found at https://swift.org/code-of-conduct.
## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
[email protected] with any additional questions or comments.
83 changes: 37 additions & 46 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,68 +1,59 @@
## Legal
# Contributing Guidelines

By submitting a pull request, you represent that you have the right to license
your contribution to Apple and the community, and agree by submitting the patch
that your contributions are licensed under the Apache 2.0 license (see
`LICENSE.txt`).
Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.

## How to submit a bug report

Please ensure to specify the following:
## Reporting Bugs/Feature Requests

* SwiftAWSLambdaRuntime commit hash
* Contextual information (e.g. what you were trying to achieve with SwiftAWSLambdaRuntime)
* Simplest possible steps to reproduce
* More complex the steps are, lower the priority will be.
* A pull request with failing test case is preferred, but it's just fine to paste the test case into the issue description.
* Anything that might be relevant in your opinion, such as:
* Swift version or the output of `swift --version`
* OS version and the output of `uname -a`
* Network configuration
We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

### Example
* A reproducible test case or series of steps
* The version of our code being used
* Any modifications you've made relevant to the bug
* Anything unusual about your environment or deployment

```
SwiftAWSLambdaRuntime commit hash: 22ec043dc9d24bb011b47ece4f9ee97ee5be2757

Context:
While load testing my Lambda written with SwiftAWSLambdaRuntime, I noticed
that one file descriptor is leaked per request.
## Contributing via Pull Requests
Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

Steps to reproduce:
1. ...
2. ...
3. ...
4. ...
1. You are working against the latest source on the *main* branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.

$ swift --version
Swift version 4.0.2 (swift-4.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu
To send us a pull request, please:

Operating system: Ubuntu Linux 16.04 64-bit
1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

$ uname -a
Linux beefy.machine 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).

My system has IPv6 disabled.
```

## Writing a Patch
## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

A good SwiftAWSLambdaRuntime patch is:

1. Concise, and contains as few changes as needed to achieve the end result.
2. Tested, ensuring that any tests provided failed before the patch and pass after it.
3. Documented, adding API documentation as needed to cover new functions and properties.
4. Accompanied by a great commit message, using our commit message template.
## Code of Conduct
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
[email protected] with any additional questions or comments.

### Commit Message Template

We require that your commit messages match our template. The easiest way to do that is to get git to help you by explicitly using the template. To do that, `cd` to the root of our repository and run:
## Security issue notifications
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

git config commit.template dev/git.commit.template

## How to contribute your work
## Licensing

Please open a pull request at https://github.com/awslabs/swift-aws-lambda-events. Make sure the CI passes, and then wait for code review.
See the [LICENSE](LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
19 changes: 19 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ needs to be listed here.

## COPYRIGHT HOLDERS

- Amazon.com, Inc. (all contributors with '@amazon.com')
- Apple Inc. (all contributors with '@apple.com')

### Contributors

- Adam Fowler <[email protected]>
- Adolfo <[email protected]>
- Alessio Buratti <[email protected]>
- Andrea Scuderi <[email protected]>
- Brendan Kirchner <[email protected]>
- Bryan Bartow <[email protected]>
Expand All @@ -23,18 +26,34 @@ needs to be listed here.
- Eneko Alonso <[email protected]>
- Fabian Fett <[email protected]>
- Filipp Fediakov <[email protected]>
- Franz Busch <[email protected]>
- George Barnett <[email protected]>
- Idelfonso Gutierrez <[email protected]>
- Joannis Orlandos <[email protected]>
- Johannes Bosecker <[email protected]>
- Johannes Weiss <[email protected]>
- Josh <[email protected]>
- ML <[email protected]>
- Mahdi Bahrami <[email protected]>
- Matt Massicotte <[email protected]>
- Max Desiatov <[email protected]>
- Mike Lewis <[email protected]>
- Natan Rolnik <[email protected]>
- Norman Maurer <[email protected]>
- Ralph Küpper <[email protected]>
- Renato Guimarães <[email protected]>
- Richard Kendall Wolf <[email protected]>
- Ro-M <[email protected]>
- Simon Leeb <[email protected]>
- Stefan Nienhuis <[email protected]>
- Sébastien Stormacq <[email protected]>
- Taylor <[email protected]>
- Tobias <[email protected]>
- Tomer Doron <[email protected]>
- Ugo Cottin <[email protected]>
- Yim Lee <[email protected]>
- Zhibin Cai <[email protected]>
- jsonfry <[email protected]>
- pmarrufo <[email protected]>
- pokryfka <[email protected]>
- pokryfka <[email protected]>
Expand Down
33 changes: 5 additions & 28 deletions NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,12 @@
swift-aws-lambda-runtime
Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.

The SwiftAWSLambdaRuntime Project
=================================
---

Please visit the SwiftAWSLambdaRuntime web site for more information:

* https://github.com/awslabs/swift-aws-lambda-runtime

Copyright 2017-2025 The SwiftAWSLambdaRuntime Project

The SwiftAWSLambdaRuntime Project 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:

https://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.

Also, please refer to each LICENSE.txt file, which is located in
the 'license' directory of the distribution file, for the license terms of the
components that this product depends on.

-------------------------------------------------------------------------------


This product contains a derivation various scripts from SwiftNIO.
This product contains a derivation various code and scripts from SwiftNIO.

* LICENSE (Apache License 2.0):
* https://www.apache.org/licenses/LICENSE-2.0
* HOMEPAGE:
* https://github.com/apple/swift-nio

46 changes: 5 additions & 41 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,7 @@
# Security
# SECURITY.md

This document specifies the security process for the Swift AWS Lambda Runtime project.
## Reporting a Vulnerability

## Disclosures

### Private Disclosure Process

The Swift AWS Lambda Runtime maintainers ask that known and suspected vulnerabilities be
privately and responsibly disclosed by emailing
[[email protected]](mailto:[email protected])
with the all the required detail.
**Do not file a public issue.**

#### When to report a vulnerability

* You think you have discovered a potential security vulnerability in Swift AWS Lambda Runtime.
* You are unsure how a vulnerability affects Swift AWS Lambda Runtime.

#### What happens next?

* A member of the team will acknowledge receipt of the report within 3
working days (United States). This may include a request for additional
information about reproducing the vulnerability.
* We will privately inform the Swift Server Work Group ([SSWG][sswg]) of the
vulnerability within 10 days of the report as per their [security
guidelines][sswg-security].
* Once we have identified a fix we may ask you to validate it. We aim to do this
within 30 days. In some cases this may not be possible, for example when the
vulnerability exists at the protocol level and the industry must coordinate on
the disclosure process.
* If a CVE number is required, one will be requested from [MITRE][mitre]
providing you with full credit for the discovery.
* We will decide on a planned release date and let you know when it is.
* Prior to release, we will inform major dependents that a security-related
patch is impending.
* Once the fix has been released we will publish a security advisory on GitHub
and in the Server → Security Updates category on the [Swift forums][swift-forums-sec].

[sswg]: https://github.com/swift-server/sswg
[sswg-security]: https://github.com/swift-server/sswg/blob/main/security/README.md
[swift-forums-sec]: https://forums.swift.org/c/server/security-updates/
[mitre]: https://cveform.mitre.org/
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via
our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email
to [[email protected]](mailto:[email protected]). Please do not create a public GitHub issue.
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/ALB.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/APIGateway+Encodable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/APIGateway+V2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/APIGateway+WebSockets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) YEARS Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/APIGateway.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/APIGatewayLambdaAuthorizers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/AWSRegion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/AppSync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/BedrockAgent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/CloudFormation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
3 changes: 2 additions & 1 deletion Sources/AWSLambdaEvents/Cloudwatch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
//
// This source file is part of the SwiftAWSLambdaRuntime open source project
//
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
// Copyright SwiftAWSLambdaRuntime project authors
// Copyright (c)Amazon.com, Inc. or its affiliates.
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down
Loading
Loading