anbaric-cloud-hosting 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/app-management/DockerBuildLayer.ts +1 -0
- package/src/app-management/FargateBuildLayer.ts +1 -0
- package/src/auditing/AuditRecordStore.ts +18 -0
- package/src/auditing/InMemoryAuditRecordStore.ts +28 -0
- package/src/data-store/PostgresAuditRecordStore.ts +61 -0
- package/src/data-store/Schema.ts +12 -0
- package/src/hosting/HostingServer.ts +5 -3
- package/src/hosting/Router.ts +26 -1
- package/src/hosting/pages/platform-ui.html +2 -2
- package/src/index.ts +3 -0
- package/src/main.ts +2 -1
package/src/index.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./app-management/BuildLayer";
|
|
2
|
+
export * from "./auditing/AuditRecordStore";
|
|
3
|
+
export * from "./auditing/InMemoryAuditRecordStore";
|
|
4
|
+
export * from "./data-store/PostgresAuditRecordStore";
|
|
2
5
|
export * from "./auth/Authenticator";
|
|
3
6
|
export * from "./auth/CliAuthorizer";
|
|
4
7
|
export * from "./auth/CliKey";
|
package/src/main.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {loadAuthenticator} from "./auth/AuthenticatorLoader";
|
|
|
6
6
|
import {CliAuthorizer} from "./auth/CliAuthorizer";
|
|
7
7
|
import {HttpCliKeyStore} from "./auth/HttpCliKeyStore";
|
|
8
8
|
import {TokenAuthenticator} from "./auth/TokenAuthenticator";
|
|
9
|
+
import {PostgresAuditRecordStore} from "./data-store/PostgresAuditRecordStore";
|
|
9
10
|
import {PostgresCliKeyStore} from "./data-store/PostgresCliKeyStore";
|
|
10
11
|
import {ensureSchema} from "./data-store/Schema";
|
|
11
12
|
import {SecretsManagerSecretStore} from "./data-store/SecretsManagerSecretStore";
|
|
@@ -65,7 +66,7 @@ const tokenAuthenticator = new TokenAuthenticator(cliKeyStore, process.env.ANBAR
|
|
|
65
66
|
|
|
66
67
|
const server = new HostingServer(new PostgresJobPersistence(pool), queue, registry, buildLayer,
|
|
67
68
|
(collection) => new PostgresJsonStore(pool, collection), secretStore, authenticator, cliAuthorizer,
|
|
68
|
-
tokenAuthenticator, process.env.ANBARIC_TENANT);
|
|
69
|
+
tokenAuthenticator, process.env.ANBARIC_TENANT, new PostgresAuditRecordStore(pool));
|
|
69
70
|
const port = await server.listen(hostingPort);
|
|
70
71
|
const internal = await server.listenInternal(internalPort);
|
|
71
72
|
|