Skip to content

Commit 1f584bf

Browse files
authored
Merge pull request #717 from fosrl/dev
1.4.0
2 parents a512148 + 5b02001 commit 1f584bf

File tree

92 files changed

+353
-759
lines changed

Some content is hidden

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

92 files changed

+353
-759
lines changed

LICENSE

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
Copyright (c) 2025 Fossorial, LLC.
2-
3-
Portions of this software are licensed as follows:
4-
5-
* All files that include a header specifying they are licensed under the
6-
"Fossorial Commercial License" are governed by the Fossorial Commercial
7-
License terms. The specific terms applicable to each customer depend on the
8-
commercial license tier agreed upon in writing with Fossorial LLC.
9-
Unauthorized use, copying, modification, or distribution is strictly
10-
prohibited.
11-
12-
* All files that include a header specifying they are licensed under the GNU
13-
Affero General Public License, Version 3 ("AGPL-3"), are governed by the
14-
AGPL-3 terms. A full copy of the AGPL-3 license is provided below. However,
15-
these files are also available under the Fossorial Commercial License if a
16-
separate commercial license agreement has been executed between the customer
17-
and Fossorial LLC.
18-
19-
* All files without a license header are, by default, licensed under the GNU
20-
Affero General Public License, Version 3 (AGPL-3). These files may also be
21-
made available under the Fossorial Commercial License upon agreement with
22-
Fossorial LLC.
23-
24-
* All third-party components included in this repository are licensed under
25-
their respective original licenses, as provided by their authors.
26-
27-
Please consult the header of each individual file to determine the applicable
28-
license. For AGPL-3 licensed files, dual-licensing under the Fossorial
29-
Commercial License is available subject to written agreement with Fossorial
30-
LLC.
31-
32-
331
GNU AFFERO GENERAL PUBLIC LICENSE
342
Version 3, 19 November 2007
353

newt

12.5 MB
Binary file not shown.

server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createNextServer } from "./nextServer";
66
import { createInternalServer } from "./internalServer";
77
import { ApiKey, ApiKeyOrg, Session, User, UserOrg } from "./db/schemas";
88
import { createIntegrationApiServer } from "./integrationApiServer";
9-
import license from "./license/license.js";
9+
import config from "@server/lib/config";
1010

1111
async function startServers() {
1212
await runSetupFunctions();
@@ -17,7 +17,7 @@ async function startServers() {
1717
const nextServer = await createNextServer();
1818

1919
let integrationServer;
20-
if (await license.isUnlocked()) {
20+
if (config.getRawConfig().flags?.enable_integration_api) {
2121
integrationServer = createIntegrationApiServer();
2222
}
2323

server/integrationApiServer.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// This file is licensed under the Fossorial Commercial License.
2-
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
3-
//
4-
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
5-
61
import express from "express";
72
import cors from "cors";
83
import cookieParser from "cookie-parser";
@@ -11,7 +6,6 @@ import logger from "@server/logger";
116
import {
127
errorHandlerMiddleware,
138
notFoundMiddleware,
14-
verifyValidLicense
159
} from "@server/middlewares";
1610
import { authenticated, unauthenticated } from "@server/routers/integration";
1711
import { logIncomingMiddleware } from "./middlewares/logIncoming";
@@ -26,8 +20,6 @@ const externalPort = config.getRawConfig().server.integration_port;
2620
export function createIntegrationApiServer() {
2721
const apiServer = express();
2822

29-
apiServer.use(verifyValidLicense);
30-
3123
if (config.getRawConfig().server.trust_proxy) {
3224
apiServer.set("trust proxy", 1);
3325
}

server/lib/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ const configSchema = z.object({
216216
disable_user_create_org: z.boolean().optional(),
217217
allow_raw_resources: z.boolean().optional(),
218218
allow_base_domain_resources: z.boolean().optional(),
219-
allow_local_sites: z.boolean().optional()
219+
allow_local_sites: z.boolean().optional(),
220+
enable_integration_api: z.boolean().optional()
220221
})
221222
.optional()
222223
});

server/lib/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from "path";
22
import { fileURLToPath } from "url";
33

44
// This is a placeholder value replaced by the build process
5-
export const APP_VERSION = "1.3.2";
5+
export const APP_VERSION = "1.4.0";
66

77
export const __FILENAME = fileURLToPath(import.meta.url);
88
export const __DIRNAME = path.dirname(__FILENAME);

server/license/license.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// This file is licensed under the Fossorial Commercial License.
2-
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
3-
//
4-
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
5-
61
import db from "@server/db";
72
import { hostMeta, licenseKey, sites } from "@server/db/schemas";
83
import logger from "@server/logger";

server/license/licenseJwt.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// This file is licensed under the Fossorial Commercial License.
2-
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
3-
//
4-
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
5-
61
import * as crypto from "crypto";
72

83
/**

server/middlewares/integration/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// This file is licensed under the Fossorial Commercial License.
2-
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
3-
//
4-
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
5-
61
export * from "./verifyApiKey";
72
export * from "./verifyApiKeyOrgAccess";
83
export * from "./verifyApiKeyHasAction";

server/middlewares/integration/verifyAccessTokenAccess.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
// This file is licensed under the Fossorial Commercial License.
2-
// Unauthorized use, copying, modification, or distribution is strictly prohibited.
3-
//
4-
// Copyright (c) 2025 Fossorial LLC. All rights reserved.
5-
61
import { Request, Response, NextFunction } from "express";
72
import { db } from "@server/db";
83
import { resourceAccessToken, resources, apiKeyOrg } from "@server/db/schemas";

0 commit comments

Comments
 (0)