@camstack/system 1.2.115 → 1.2.116
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/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-hostname.d.ts +15 -0
- package/dist/builtins/local-network/local-network.addon.d.ts +31 -7
- package/dist/builtins/local-network/local-network.addon.js +177 -28
- package/dist/builtins/local-network/local-network.addon.mjs +177 -28
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-Drb54SZD.mjs → dist-BpzbLPel.mjs} +139 -5
- package/dist/{dist-iAwSA2_f.js → dist-Cri60Jd0.js} +139 -5
- package/dist/http/lan-http-bind.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +29 -472
- package/dist/index.mjs +11 -468
- package/dist/lan-http-bind-BDJm4d-K.mjs +716 -0
- package/dist/lan-http-bind-CZ4EBeD_.js +848 -0
- package/dist/{retired-settings-keys-OfhqQio4.js → retired-settings-keys-BVAxT5XL.js} +1 -1
- package/dist/{retired-settings-keys-Dz5-7gjt.mjs → retired-settings-keys-SrxMH3OT.mjs} +1 -1
- package/dist/tls/cert-manager.d.ts +11 -0
- package/dist/tls/index.d.ts +3 -1
- package/dist/tls/tls-status.d.ts +16 -0
- package/dist/tls/uploaded-cert.d.ts +14 -0
- package/package.json +1 -1
|
@@ -24,6 +24,12 @@ export interface EnsureTlsResult {
|
|
|
24
24
|
/** ISO timestamp at which the leaf stops being valid. */
|
|
25
25
|
readonly validTo: string;
|
|
26
26
|
readonly sans: readonly string[];
|
|
27
|
+
/**
|
|
28
|
+
* Set when a reissue was needed and FAILED, and the previous material is
|
|
29
|
+
* still being served. Never null-and-degraded silently: this is the line
|
|
30
|
+
* that says the certificate is not what the rule wants it to be.
|
|
31
|
+
*/
|
|
32
|
+
readonly reissueError: string | null;
|
|
27
33
|
}
|
|
28
34
|
export interface CertOptions {
|
|
29
35
|
/** Common Name for the leaf (default: 'camstack.local') */
|
|
@@ -70,6 +76,11 @@ export interface CertOptions {
|
|
|
70
76
|
* address change the hub will ever see.
|
|
71
77
|
*/
|
|
72
78
|
export declare function ensureTlsCert(dataDir: string, options?: CertOptions): Promise<EnsureTlsResult>;
|
|
79
|
+
/**
|
|
80
|
+
* Operator "Regenerate": issue a new leaf under the existing local CA.
|
|
81
|
+
* Never rotates the root — trust granted to `camstack-ca.crt` survives.
|
|
82
|
+
*/
|
|
83
|
+
export declare function reissueTlsLeaf(dataDir: string, options?: CertOptions): Promise<EnsureTlsResult>;
|
|
73
84
|
/**
|
|
74
85
|
* Load TLS cert+key from files. Returns Buffers suitable for Node.js TLS
|
|
75
86
|
* options. `certPath` is a full chain, so the listener presents the local
|
package/dist/tls/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { CA_VALIDITY_DAYS, type CertEvaluationInput, LEAF_RENEWAL_WINDOW_DAYS, SERVER_AUTH_OID, } from './cert-evaluation.js';
|
|
2
|
-
export { type CertIdentity, type CertOptions, type CertRegenerationReason, collectCertIdentity, type EnsureTlsResult, ensureTlsCert, evaluateExistingCert, loadTlsCert, MAX_LEAF_VALIDITY_DAYS, type TlsCertPair, } from './cert-manager.js';
|
|
2
|
+
export { type CertIdentity, type CertOptions, type CertRegenerationReason, collectCertIdentity, type EnsureTlsResult, ensureTlsCert, reissueTlsLeaf, evaluateExistingCert, loadTlsCert, MAX_LEAF_VALIDITY_DAYS, type TlsCertPair, } from './cert-manager.js';
|
|
3
3
|
export { CA_COMMON_NAME } from './cert-openssl.js';
|
|
4
|
+
export { validateUploadedTls, type UploadedTlsValidation } from './uploaded-cert.js';
|
|
5
|
+
export { type TlsAccessStatus, readTlsAccessStatus, writeTlsMode, readTlsMode, readExtraSans, writeExtraSans, } from './tls-status.js';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type TlsMode = 'generated' | 'uploaded' | 'disabled';
|
|
2
|
+
export interface TlsAccessStatus {
|
|
3
|
+
readonly mode: TlsMode;
|
|
4
|
+
readonly leafFingerprintSha256: string | null;
|
|
5
|
+
readonly caFingerprintSha256: string | null;
|
|
6
|
+
readonly validTo: string | null;
|
|
7
|
+
readonly sans: readonly string[];
|
|
8
|
+
readonly caCertPem: string | null;
|
|
9
|
+
readonly reissueError: string | null;
|
|
10
|
+
readonly restartRequired: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function readTlsMode(dataDir: string): TlsMode;
|
|
13
|
+
export declare function writeTlsMode(dataDir: string, mode: TlsMode): void;
|
|
14
|
+
export declare function readExtraSans(dataDir: string): readonly string[];
|
|
15
|
+
export declare function writeExtraSans(dataDir: string, sans: readonly string[]): void;
|
|
16
|
+
export declare function readTlsAccessStatus(dataDir: string, restartRequired?: boolean): TlsAccessStatus;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type UploadedTlsValidation = {
|
|
2
|
+
readonly ok: true;
|
|
3
|
+
readonly fingerprintSha256: string;
|
|
4
|
+
readonly validTo: string;
|
|
5
|
+
} | {
|
|
6
|
+
readonly ok: false;
|
|
7
|
+
readonly error: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Operator-supplied material must parse, match its key, and carry
|
|
11
|
+
* `extendedKeyUsage = serverAuth` — the same leaf defects D227 refused
|
|
12
|
+
* to keep generating.
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateUploadedTls(certPem: string, keyPem: string): UploadedTlsValidation;
|