Skip to content

Commit f6fc221

Browse files
authored
Update License header according to /awslabs standards (#101)
Update legal files and license header in source files to the AWS standard
1 parent 40db1cc commit f6fc221

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+309
-174
lines changed

.license_header_template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@@===----------------------------------------------------------------------===@@
2+
@@
3+
@@ This source file is part of the SwiftAWSLambdaRuntime open source project
4+
@@
5+
@@ Copyright SwiftAWSLambdaRuntime project authors
6+
@@ Copyright (c)Amazon.com, Inc. or its affiliates.
7+
@@ Licensed under Apache License v2.0
8+
@@
9+
@@ See LICENSE.txt for license information
10+
@@ See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
11+
@@
12+
@@ SPDX-License-Identifier: Apache-2.0
13+
@@
14+
@@===----------------------------------------------------------------------===@@

.licenseignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ Package.resolved
3030
**/ResourcePackaging/hello.txt
3131
.mailmap
3232
.swiftformat
33+
**/*.json

.mailmap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ Tomer Doron <tomer@apple.com> <tomer@apple.com>
22
Tomer Doron <tomer@apple.com> <tomerd@apple.com>
33
Tomer Doron <tomer@apple.com> <tomer.doron@gmail.com>
44
Fabian Fett <fabianfett@apple.com> <fabianfett@apple.com>
5-
Fabian Fett <fabianfett@apple.com> <fabianfett@mac.com>
5+
Fabian Fett <fabianfett@apple.com> <fabianfett@mac.com>
6+
Natan Rolnik <natanrolnik@gmail.com> <me@natanrolnik.me>

CODE_OF_CONDUCT.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
# Code of Conduct
2-
3-
The code of conduct for this project can be found at https://swift.org/code-of-conduct.
1+
## Code of Conduct
2+
This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
3+
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
4+
opensource-codeofconduct@amazon.com with any additional questions or comments.

CONTRIBUTING.md

Lines changed: 37 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,59 @@
1-
## Legal
1+
# Contributing Guidelines
22

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

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

9-
## How to submit a bug report
109

11-
Please ensure to specify the following:
10+
## Reporting Bugs/Feature Requests
1211

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

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

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

26-
```
27-
SwiftAWSLambdaRuntime commit hash: 22ec043dc9d24bb011b47ece4f9ee97ee5be2757
2822

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

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

39-
$ swift --version
40-
Swift version 4.0.2 (swift-4.0.2-RELEASE)
41-
Target: x86_64-unknown-linux-gnu
30+
To send us a pull request, please:
4231

43-
Operating system: Ubuntu Linux 16.04 64-bit
32+
1. Fork the repository.
33+
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.
34+
3. Ensure local tests pass.
35+
4. Commit to your fork using clear commit messages.
36+
5. Send us a pull request, answering any default questions in the pull request interface.
37+
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.
4438

45-
$ uname -a
46-
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
39+
GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
40+
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).
4741

48-
My system has IPv6 disabled.
49-
```
5042

51-
## Writing a Patch
43+
## Finding contributions to work on
44+
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.
5245

53-
A good SwiftAWSLambdaRuntime patch is:
5446

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

60-
### Commit Message Template
6152

62-
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:
53+
## Security issue notifications
54+
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.
6355

64-
git config commit.template dev/git.commit.template
6556

66-
## How to contribute your work
57+
## Licensing
6758

68-
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.
59+
See the [LICENSE](LICENSE.txt) file for our project's licensing. We will ask you to confirm the licensing of your contribution.

CONTRIBUTORS.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ needs to be listed here.
77

88
## COPYRIGHT HOLDERS
99

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

1213
### Contributors
1314

1415
- Adam Fowler <adamfowler71@gmail.com>
16+
- Adolfo <fitomad@users.noreply.github.com>
17+
- Alessio Buratti <9006089+Buratti@users.noreply.github.com>
1518
- Andrea Scuderi <andreascuderi@ymail.com>
1619
- Brendan Kirchner <brendankirchner@me.com>
1720
- Bryan Bartow <bryanbartow@gmail.com>
@@ -23,18 +26,34 @@ needs to be listed here.
2326
- Eneko Alonso <eneko.alonso@gmail.com>
2427
- Fabian Fett <fabianfett@apple.com>
2528
- Filipp Fediakov <julik103@mail.ru>
29+
- Franz Busch <privat@franz-busch.de>
2630
- George Barnett <gbarnett@apple.com>
31+
- Idelfonso Gutierrez <idelfonsog2@gmail.com>
32+
- Joannis Orlandos <joannis@orlandos.nl>
2733
- Johannes Bosecker <j.bosecker.dev@icloud.com>
2834
- Johannes Weiss <johannesweiss@apple.com>
2935
- Josh <29730338+mr-j-tree@users.noreply.github.com>
3036
- ML <44809298+mufumade@users.noreply.github.com>
37+
- Mahdi Bahrami <github@mahdibm.com>
3138
- Matt Massicotte <85322+mattmassicotte@users.noreply.github.com>
3239
- Max Desiatov <max@desiatov.com>
40+
- Mike Lewis <mike@mplew.is>
41+
- Natan Rolnik <natanrolnik@gmail.com>
3342
- Norman Maurer <norman_maurer@apple.com>
3443
- Ralph Küpper <ralph.kuepper@skelpo.com>
44+
- Renato Guimarães <renatoaguimaraes@gmail.com>
45+
- Richard Kendall Wolf <richwolf@me.com>
3546
- Ro-M <Ro-M@users.noreply.github.com>
47+
- Simon Leeb <52261246+sliemeobn@users.noreply.github.com>
48+
- Stefan Nienhuis <stefan@nienhuisdevelopment.com>
49+
- Sébastien Stormacq <sebastien.stormacq@gmail.com>
50+
- Taylor <hiimtmac+github@gmail.com>
51+
- Tobias <t089@users.noreply.github.com>
3652
- Tomer Doron <tomer@apple.com>
53+
- Ugo Cottin <ugo.cottin@gmail.com>
54+
- Yim Lee <yim_lee@apple.com>
3755
- Zhibin Cai <TonyChol@users.noreply.github.com>
56+
- jsonfry <jason@jasonfry.co.uk>
3857
- pmarrufo <p_marrufo94@hotmail.com>
3958
- pokryfka <5090827+pokryfka@users.noreply.github.com>
4059
- pokryfka <pokryfka@gmail.com>

NOTICE.txt

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,12 @@
1+
swift-aws-lambda-runtime
2+
Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.
13

2-
The SwiftAWSLambdaRuntime Project
3-
=================================
4+
---
45

5-
Please visit the SwiftAWSLambdaRuntime web site for more information:
6-
7-
* https://github.com/awslabs/swift-aws-lambda-runtime
8-
9-
Copyright 2017-2025 The SwiftAWSLambdaRuntime Project
10-
11-
The SwiftAWSLambdaRuntime Project licenses this file to you under the Apache License,
12-
version 2.0 (the "License"); you may not use this file except in compliance
13-
with the License. You may obtain a copy of the License at:
14-
15-
https://www.apache.org/licenses/LICENSE-2.0
16-
17-
Unless required by applicable law or agreed to in writing, software
18-
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
19-
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
20-
License for the specific language governing permissions and limitations
21-
under the License.
22-
23-
Also, please refer to each LICENSE.txt file, which is located in
24-
the 'license' directory of the distribution file, for the license terms of the
25-
components that this product depends on.
26-
27-
-------------------------------------------------------------------------------
28-
29-
30-
This product contains a derivation various scripts from SwiftNIO.
6+
This product contains a derivation various code and scripts from SwiftNIO.
317

328
* LICENSE (Apache License 2.0):
339
* https://www.apache.org/licenses/LICENSE-2.0
3410
* HOMEPAGE:
3511
* https://github.com/apple/swift-nio
12+

SECURITY.md

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,7 @@
1-
# Security
1+
# SECURITY.md
22

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

5-
## Disclosures
6-
7-
### Private Disclosure Process
8-
9-
The Swift AWS Lambda Runtime maintainers ask that known and suspected vulnerabilities be
10-
privately and responsibly disclosed by emailing
11-
[sswg-security-reports@forums.swift.org](mailto:sswg-security-reports@forums.swift.org)
12-
with the all the required detail.
13-
**Do not file a public issue.**
14-
15-
#### When to report a vulnerability
16-
17-
* You think you have discovered a potential security vulnerability in Swift AWS Lambda Runtime.
18-
* You are unsure how a vulnerability affects Swift AWS Lambda Runtime.
19-
20-
#### What happens next?
21-
22-
* A member of the team will acknowledge receipt of the report within 3
23-
working days (United States). This may include a request for additional
24-
information about reproducing the vulnerability.
25-
* We will privately inform the Swift Server Work Group ([SSWG][sswg]) of the
26-
vulnerability within 10 days of the report as per their [security
27-
guidelines][sswg-security].
28-
* Once we have identified a fix we may ask you to validate it. We aim to do this
29-
within 30 days. In some cases this may not be possible, for example when the
30-
vulnerability exists at the protocol level and the industry must coordinate on
31-
the disclosure process.
32-
* If a CVE number is required, one will be requested from [MITRE][mitre]
33-
providing you with full credit for the discovery.
34-
* We will decide on a planned release date and let you know when it is.
35-
* Prior to release, we will inform major dependents that a security-related
36-
patch is impending.
37-
* Once the fix has been released we will publish a security advisory on GitHub
38-
and in the Server → Security Updates category on the [Swift forums][swift-forums-sec].
39-
40-
[sswg]: https://github.com/swift-server/sswg
41-
[sswg-security]: https://github.com/swift-server/sswg/blob/main/security/README.md
42-
[swift-forums-sec]: https://forums.swift.org/c/server/security-updates/
43-
[mitre]: https://cveform.mitre.org/
5+
If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via
6+
our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/) or directly via email
7+
to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.

Sources/AWSLambdaEvents/ALB.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5+
// Copyright SwiftAWSLambdaRuntime project authors
6+
// Copyright (c)Amazon.com, Inc. or its affiliates.
67
// Licensed under Apache License v2.0
78
//
89
// See LICENSE.txt for license information

Sources/AWSLambdaEvents/APIGateway+Encodable.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//
33
// This source file is part of the SwiftAWSLambdaRuntime open source project
44
//
5-
// Copyright (c) 2017-2022 Apple Inc. and the SwiftAWSLambdaRuntime project authors
5+
// Copyright SwiftAWSLambdaRuntime project authors
6+
// Copyright (c)Amazon.com, Inc. or its affiliates.
67
// Licensed under Apache License v2.0
78
//
89
// See LICENSE.txt for license information

0 commit comments

Comments
 (0)