Skip to content

Commit 54ce64b

Browse files
authored
Add README, docs and .spi.yml (#9)
1 parent 0d1c61a commit 54ce64b

File tree

6 files changed

+51
-63
lines changed

6 files changed

+51
-63
lines changed

.spi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 1
2+
builder:
3+
configs:
4+
- documentation_targets: [GRPCNIOTransportHTTP2, GRPCNIOTransportHTTP2Posix, GRPCNIOTransportHTTP2TransportServices]
5+
swift_version: 6.0
6+
# Don't include @_exported types from GRPCCore
7+
custom_documentation_parameters: [--exclude-extended-types]

CONTRIBUTING.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
# How to contribute
1+
# Contributing
22

3-
We definitely welcome patches and contributions to grpc-swift! Please read the gRPC
4-
organization's [governance rules](https://github.com/grpc/grpc-community/blob/main/governance.md)
5-
and [contribution guidelines](https://github.com/grpc/grpc-community/blob/main/CONTRIBUTING.md) before proceeding.
6-
7-
Here are some guidelines and information about how to participate.
8-
9-
## Getting started
10-
11-
### Legal requirements
12-
13-
In order to protect both you and ourselves, you will need to sign the
14-
[Contributor License Agreement](https://identity.linuxfoundation.org/projects/cncf).
15-
16-
### Technical requirements
17-
18-
Please see the [main gRPC repository](https://github.com/grpc/grpc) for
19-
more information about gRPC.
3+
Please refer to the contributing guide in the
4+
[`grpc/grpc-swift`](https://github.com/grpc/grpc-swift) repository.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ let targets: [Target] = [
7575
]
7676
),
7777

78-
// Core module containing shared compionents for the NIOPosix and NIOTS variants.
78+
// Core module containing shared components for the NIOPosix and NIOTS variants.
7979
.target(
8080
name: "GRPCNIOTransportCore",
8181
dependencies: [

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# gRPC Swift NIO Transport
2+
3+
This repository contains high-performance HTTP/2 client and server transport
4+
implementations for [gRPC Swift][gh-grpc-swift] built on top of
5+
[SwiftNIO][gh-swift-nio].
6+
7+
- 📚 **Documentation** is available on the [Swift Package Index][spi-grpc-swift-nio-transport]
8+
- 🎓 **Tutorials** are available in the documentation for `grpc/grpc-swift` on
9+
the [Swift Package Index][spi-grpc-swift].
10+
- 💻 **Examples** are available in the `Examples` directory of the
11+
[`grpc/grpc-swift`](https://github.com/grpc/grpc-swift) repository
12+
- 🚀 **Contributions** are welcome, please see [CONTRIBUTING.md](CONTRIBUTING.md)
13+
- 🪪 **License** is Apache 2.0, repeated in [LICENSE](License)
14+
- 🔒 **Security** issues should be reported via the process in [SECURITY.md](SECURITY.md)
15+
16+
[gh-swift-nio]: https://github.com/apple/swift-nio
17+
[gh-grpc-swift]: https://github.com/grpc/grpc-swift
18+
[spi-grpc-swift-nio-transport]: https://swiftpackageindex.com/grpc/grpc-swift-nio-transport/documentation

SECURITY.md

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,4 @@
11
# Security
22

3-
This document specifies the security process for gRPC Swift.
4-
5-
## Disclosures
6-
7-
### Private Disclosure Process
8-
9-
The gRPC Swift team asks that known and suspected vulnerabilities be
10-
privately and responsibly disclosed by emailing
11-
12-
with the [details usually included with bug reports][issue-template].
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 gRPC
18-
Swift.
19-
* You are unsure how a vulnerability affects gRPC Swift.
20-
21-
#### What happens next?
22-
23-
* A member of the team will acknowledge receipt of the report within 3
24-
working days (United Kingdom). This may include a request for additional
25-
information about reproducing the vulnerability.
26-
* We will privately inform the Swift Server Work Group ([SSWG][sswg]) of the
27-
vulnerability within 10 days of the report as per their [security
28-
guidelines][sswg-security].
29-
* Once we have identified a fix we may ask you to validate it. We aim to do this
30-
within 30 days. In some cases this may not be possible, for example when the
31-
vulnerability exists at the protocol level and the industry must coordinate on
32-
the disclosure process.
33-
* If a CVE number is required, one will be requested from [MITRE][mitre]
34-
providing you with full credit for the discovery.
35-
* We will decide on a planned release date and let you know when it is.
36-
* Prior to release, we will inform major dependents that a security-related
37-
patch is impending.
38-
* Once the fix has been released we will publish a security advisory on GitHub
39-
and the [SSWG][sswg] will announce the vulnerability on the [Swift
40-
forums][swift-forums-sec].
41-
42-
[issue-template]: https://github.com/grpc/grpc-swift/blob/main/.github/ISSUE_TEMPLATE/BUG_REPORT.md
43-
[sswg]: https://github.com/swift-server/sswg
44-
[sswg-security]: https://github.com/swift-server/sswg/blob/main/process/incubation.md#security-best-practices
45-
[swift-forums-sec]: https://forums.swift.org/c/server/security-updates/
46-
[mitre]: https://cveform.mitre.org/
3+
Please refer to [SECURITY.md] in the
4+
[`grpc/grpc-swift`](https://github.com/grpc/grpc-swift) repository.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ``GRPCNIOTransportHTTP2``
2+
3+
An umbrella module providing high-performance HTTP/2 client and server transport
4+
implementations built on top of SwiftNIO.
5+
6+
The module provides two variants of the client and server transport which differ in the
7+
networking backend used by each. The two backends are:
8+
9+
1. `NIOPosix`, and
10+
2. `NIOTransportServices`.
11+
12+
These correspond to two different modules provided by `grpc-swift-nio-transport`:
13+
14+
1. [`GRPCNIOTransportHTTP2Posix`](https://swiftpackageindex.com/grpc/grpc-swift-nio-transport/documentation/grpcniotransporthttp2posix), and
15+
2. [`GRPCNIOTransportHTTP2TransportServices`](https://swiftpackageindex.com/grpc/grpc-swift-nio-transport/documentation/grpcniotransporthttp2transportservices).
16+
17+
This module, ``GRPCNIOTransportHTTP2``, re-exports the contents of both of these modules.
18+
19+
`GRPCNIOTransportHTTP2Posix` is available on all platforms, while
20+
`GRPCNIOTransportHTTP2TransportServices` is only available on Darwin based platforms.

0 commit comments

Comments
 (0)