Skip to content

Commit 0eecfd1

Browse files
authored
Merge pull request #19 from cloudflare/kenton/license-security
Add LICENSE.txt and SECURITY.md.
2 parents 62c50d4 + 7ceb69c commit 0eecfd1

19 files changed

+103
-0
lines changed

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Cloudflare, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Security Policy
2+
3+
https://www.cloudflare.com/disclosure
4+
5+
## Reporting a Vulnerability
6+
7+
* https://hackerone.com/cloudflare
8+
* All Cloudflare products are in scope for reporting. If you submit a valid report on bounty-eligible assets through our disclosure program, we will transfer your report to our private bug bounty program and invite you as a participant.
9+
10+
* If you'd like to encrypt your message, please do so within the the body of the message. Our email system doesn't handle PGP-MIME well.
11+
* https://www.cloudflare.com/gpg/security-at-cloudflare-pubkey-06A67236.txt
12+
13+
All abuse reports should be submitted to our Trust & Safety team through our dedicated page: https://www.cloudflare.com/abuse/
14+

__tests__/index.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
import { expect, it, describe, inject } from "vitest"
26
import { deserialize, serialize, RpcSession, type RpcSessionOptions, RpcTransport, RpcTarget,
37
RpcStub, newWebSocketRpcSession, newMessagePortRpcSession,

__tests__/test-server-workerd.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
// Test server implemented in workerd instead of Node.
26
//
37
// This is only used by the workerd tests, across a service binding.

__tests__/test-server.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
// Implements a test RPC backend server for tests to try connecting to.
26
//
37
// This is intended to be used as a vitest `globalSetup`. That means this strictly runs under Node.

__tests__/test-util.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
// Common RPC interfaces / implementations used in several tests.
26

37
import { RpcStub, RpcTarget } from '../src/index.js';

__tests__/workerd.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
/// <reference types="@cloudflare/workers-types" />
26
import { expect, it, describe } from "vitest";
37
import { RpcStub as NativeRpcStub, RpcTarget as NativeRpcTarget, env, DurableObject } from "cloudflare:workers";

src/batch.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
import { RpcStub } from "./core.js";
26
import { RpcTransport, RpcSession, RpcSessionOptions } from "./rpc.js";
37
import type { IncomingMessage, ServerResponse, OutgoingHttpHeader, OutgoingHttpHeaders } from "node:http";

src/core.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
import type { RpcTargetBranded, __RPC_TARGET_BRAND } from "./types.js";
26

37
// Polyfill Symbol.dispose for browsers that don't support it yet

src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2025 Cloudflare, Inc.
2+
// Licensed under the MIT license found in the LICENSE.txt file or at:
3+
// https://opensource.org/license/mit
4+
15
import { RpcTarget as RpcTargetImpl, RpcStub as RpcStubImpl, RpcPromise as RpcPromiseImpl } from "./core.js";
26
import { serialize, deserialize } from "./serialize.js";
37
import { RpcTransport, RpcSession as RpcSessionImpl, RpcSessionOptions } from "./rpc.js";

0 commit comments

Comments
 (0)