@oneuptime/common 15.0.0 → 16.0.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/Models/DatabaseModels/AIAgent.js +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.mts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.d.ts +2 -0
- package/Models/DatabaseModels/AIAgentTaskPullRequest.js +62 -0
- package/Models/DatabaseModels/AIRun.d.mts +2 -0
- package/Models/DatabaseModels/AIRun.d.ts +2 -0
- package/Models/DatabaseModels/AIRun.js +63 -0
- package/Models/DatabaseModels/CustomNotificationChannel.js +17 -9
- package/Models/DatabaseModels/DataProduct.js +3 -2
- package/Models/DatabaseModels/GlobalConfig.js +1 -1
- package/Models/DatabaseModels/IoTDeviceCredential.js +3 -1
- package/Models/DatabaseModels/Monitor.d.mts +4 -0
- package/Models/DatabaseModels/Monitor.d.ts +4 -0
- package/Models/DatabaseModels/Monitor.js +108 -5
- package/Models/DatabaseModels/NetworkDevice.js +43 -17
- package/Models/DatabaseModels/NetworkDeviceDiscoveryScan.js +38 -15
- package/Models/DatabaseModels/NetworkSnmpCredentialProfile.js +4 -4
- package/Models/DatabaseModels/OpenStackProjectNotice.js +29 -10
- package/Models/DatabaseModels/Probe.js +2 -0
- package/Models/DatabaseModels/ProjectSCIM.d.mts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.d.ts +2 -1
- package/Models/DatabaseModels/ProjectSCIM.js +21 -9
- package/Models/DatabaseModels/Runbook.js +3 -2
- package/Models/DatabaseModels/Runner.js +2 -0
- package/Models/DatabaseModels/StatusPage.js +3 -2
- package/Models/DatabaseModels/StatusPageSCIM.d.mts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.d.ts +2 -1
- package/Models/DatabaseModels/StatusPageSCIM.js +17 -8
- package/Models/DatabaseModels/StatusPageSubscriber.js +35 -15
- package/Models/DatabaseModels/TelemetryIngestionKey.d.mts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.d.ts +2 -0
- package/Models/DatabaseModels/TelemetryIngestionKey.js +36 -1
- package/Models/DatabaseModels/UserWebhook.js +25 -17
- package/Models/DatabaseModels/WebhookLog.js +12 -2
- package/Models/DatabaseModels/Workflow.d.mts +3 -0
- package/Models/DatabaseModels/Workflow.d.ts +3 -0
- package/Models/DatabaseModels/Workflow.js +70 -1
- package/Server/Services/DatabaseService.d.mts +21 -1
- package/Server/Services/DatabaseService.d.ts +21 -1
- package/Types/AI/AIActionWords.js +1 -1
- package/Types/AI/CarriedRecords.d.mts +35 -0
- package/Types/AI/CarriedRecords.d.ts +35 -0
- package/Types/AI/CarriedRecords.js +211 -0
- package/Types/AI/CarriedRecords.mjs +3 -0
- package/Types/Accounts/SetPasswordLink.d.mts +6 -0
- package/Types/Accounts/SetPasswordLink.d.ts +6 -0
- package/Types/Accounts/SetPasswordLink.js +47 -0
- package/Types/Accounts/SetPasswordLink.mjs +7 -0
- package/Types/BaseDatabase/DatabaseCommonInteractionPropsUtil.js +1 -1
- package/Types/CodeRepository/ProductionReview.d.mts +5 -0
- package/Types/CodeRepository/ProductionReview.d.ts +5 -0
- package/Types/CodeRepository/ProductionReview.js +108 -0
- package/Types/Database/DatabaseProperty.d.mts +1 -0
- package/Types/Database/DatabaseProperty.d.ts +1 -0
- package/Types/Database/DatabaseProperty.js +27 -0
- package/Types/Database/EncryptedValue.d.mts +2 -0
- package/Types/Database/EncryptedValue.d.ts +2 -0
- package/Types/Database/EncryptedValue.js +27 -0
- package/Types/Database/EncryptedValue.mjs +3 -0
- package/Types/Database/TableColumn.d.mts +3 -0
- package/Types/Database/TableColumn.d.ts +3 -0
- package/Types/Docs/GlossaryTerm.d.mts +1 -0
- package/Types/Docs/GlossaryTerm.d.ts +1 -0
- package/Types/Docs/GlossaryTerm.js +2 -0
- package/Types/Email/EmailSendFailure.d.mts +20 -0
- package/Types/Email/EmailSendFailure.d.ts +20 -0
- package/Types/Email/EmailSendFailure.js +244 -0
- package/Types/Email/EmailSendFailure.mjs +3 -0
- package/Types/Email/EmailTemplateType.d.mts +1 -0
- package/Types/Email/EmailTemplateType.d.ts +1 -0
- package/Types/Email/EmailTemplateType.js +5 -0
- package/Types/Runner/RunnerCodeFixCapability.d.mts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.d.ts +3 -1
- package/Types/Runner/RunnerCodeFixCapability.js +19 -1
- package/Types/Runner/RunnerCodeFixCapability.mjs +1 -0
- package/Types/SSO/SessionsWithoutSso.js +2 -2
- package/Types/ServerSending/ServerSendingStatus.d.mts +23 -2
- package/Types/ServerSending/ServerSendingStatus.d.ts +23 -2
- package/Types/ServerSending/ServerSendingStatus.js +208 -10
- package/Types/ServerSending/ServerSendingStatus.mjs +3 -0
- package/Types/ServerSetup/ServerSetupChecklist.js +5 -0
- package/Types/StatusPage/StatusPageMagicLink.js +1 -1
- package/Types/StatusPage/StatusPageSignInMessages.d.mts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.d.ts +3 -0
- package/Types/StatusPage/StatusPageSignInMessages.js +16 -0
- package/Types/StatusPage/StatusPageSignInMessages.mjs +4 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.mts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.d.ts +12 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.js +63 -0
- package/Types/StatusPage/StatusPageSingleSignOnProtocol.mjs +8 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.mts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.d.ts +18 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.js +91 -0
- package/Types/StatusPage/StatusPageSubscriberChannel.mjs +10 -0
- package/Types/Workspace/ConnectCallback.d.mts +2 -1
- package/Types/Workspace/ConnectCallback.d.ts +2 -1
- package/Types/Workspace/ConnectCallback.js +8 -0
- package/Utils/AiRemediation/DeclaredCodeChange.d.mts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.d.ts +4 -1
- package/Utils/AiRemediation/DeclaredCodeChange.js +6 -0
- package/Utils/Dashboard/MonitorListWidgetFormat.js +1 -1
- package/Utils/Incident/PostmortemActionItemCodeTask.d.mts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.d.ts +2 -0
- package/Utils/Incident/PostmortemActionItemCodeTask.js +22 -5
- package/Utils/Incident/PostmortemActionItemCodeTask.mjs +1 -0
- package/Utils/LookupTable.d.mts +1 -0
- package/Utils/LookupTable.d.ts +1 -0
- package/Utils/LookupTable.js +19 -0
- package/Utils/LookupTable.mjs +1 -0
- package/Utils/Monitor/MonitorFirstCheckOverdue.js +5 -5
- package/Utils/Monitor/MonitorOverviewFamily.d.mts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.d.ts +2 -10
- package/Utils/Monitor/MonitorOverviewFamily.js +19 -99
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.mts +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.d.ts +1 -1
- package/Utils/Monitor/MonitorOverviewPresentationUtil.js +6 -6
- package/Utils/Monitor/MonitorRowStatus.js +2 -2
- package/Utils/Monitor/MonitorTypeFamily.d.mts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.d.ts +14 -0
- package/Utils/Monitor/MonitorTypeFamily.js +105 -0
- package/Utils/Monitor/MonitorTypeFamily.mjs +3 -0
- package/Utils/Monitor/StoredCheckEvidence.d.mts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.d.ts +10 -0
- package/Utils/Monitor/StoredCheckEvidence.js +53 -0
- package/Utils/Monitor/StoredCheckEvidence.mjs +5 -0
- package/Utils/NetworkDiscovery/SnmpScanConfigUtil.js +11 -4
- package/Utils/Project/ProjectBilling.d.mts +1 -0
- package/Utils/Project/ProjectBilling.d.ts +1 -0
- package/Utils/Project/ProjectBilling.js +9 -1
- package/Utils/Project/ProjectBilling.mjs +1 -0
- package/Utils/StatusPage/HistoryWindow.d.mts +3 -0
- package/Utils/StatusPage/HistoryWindow.d.ts +3 -0
- package/Utils/StatusPage/HistoryWindow.js +24 -0
- package/Utils/StatusPage/HistoryWindow.mjs +4 -0
- package/Utils/Suggestions/CodeFixSuggestion.d.mts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.d.ts +2 -1
- package/Utils/Suggestions/CodeFixSuggestion.js +9 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.js +24 -3
- package/Utils/Suggestions/InvestigationCodeFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.mts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.d.ts +1 -0
- package/Utils/Suggestions/ProfileFixSuggestion.js +16 -4
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.mts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.d.ts +2 -0
- package/Utils/Suggestions/TelemetryAiFixSuggestion.js +17 -5
- package/Utils/Suggestions/TelemetryAiFixSuggestion.mjs +1 -0
- package/Utils/Suggestions/TracePerformanceFixSuggestion.js +16 -7
- package/Utils/WebhookAddressMask.d.mts +9 -0
- package/Utils/WebhookAddressMask.d.ts +9 -0
- package/Utils/WebhookAddressMask.js +66 -0
- package/Utils/WebhookAddressMask.mjs +2 -0
- package/package.json +1 -1
|
@@ -1718,19 +1718,32 @@ __decorate([
|
|
|
1718
1718
|
Permission_1.default.SettingsMember,
|
|
1719
1719
|
Permission_1.default.EditNetworkDevice,
|
|
1720
1720
|
],
|
|
1721
|
-
})
|
|
1721
|
+
})
|
|
1722
|
+
/*
|
|
1723
|
+
* THE DEVICE'S SNMP CREDENTIALS ARE KEPT ENCRYPTED AT REST (#9014), as a
|
|
1724
|
+
* credential profile's are: this community string, the two v3 keys below
|
|
1725
|
+
* and the legacy snmpV3Auth object's keys. DatabaseService encrypts each on
|
|
1726
|
+
* every write and decrypts it on every read, so the probe's poll
|
|
1727
|
+
* (NetworkDeviceHydrationUtil), the Settings form and both import paths
|
|
1728
|
+
* read them as written; they stay readable to whom reads them today. All
|
|
1729
|
+
* of them together, and the discovery scans' they are copied from too, so
|
|
1730
|
+
* no copy of a credential is left as written beside its encrypted one. The
|
|
1731
|
+
* EncryptSnmpCredentials data migration encrypts the values stored before.
|
|
1732
|
+
* Text, as a ciphertext is longer than its value.
|
|
1733
|
+
*/
|
|
1734
|
+
,
|
|
1722
1735
|
(0, TableColumn_1.default)({
|
|
1723
1736
|
secret: true,
|
|
1737
|
+
encrypted: true,
|
|
1724
1738
|
required: false,
|
|
1725
|
-
type: TableColumnType_1.default.
|
|
1739
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1726
1740
|
title: "SNMP Community String",
|
|
1727
|
-
description: "Community string used for SNMP v1/v2c polling",
|
|
1741
|
+
description: "Community string used for SNMP v1/v2c polling. Kept encrypted at rest.",
|
|
1728
1742
|
example: "public",
|
|
1729
1743
|
}),
|
|
1730
1744
|
(0, typeorm_1.Column)({
|
|
1731
1745
|
nullable: true,
|
|
1732
|
-
type: ColumnType_1.default.
|
|
1733
|
-
length: ColumnLength_1.default.ShortText,
|
|
1746
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1734
1747
|
}),
|
|
1735
1748
|
__metadata("design:type", String)
|
|
1736
1749
|
], NetworkDevice.prototype, "snmpCommunityString", void 0);
|
|
@@ -1787,14 +1800,17 @@ __decorate([
|
|
|
1787
1800
|
Permission_1.default.SettingsMember,
|
|
1788
1801
|
Permission_1.default.CreateNetworkDevice,
|
|
1789
1802
|
],
|
|
1803
|
+
/*
|
|
1804
|
+
* The narrow list snmpV3AuthKey and snmpV3PrivKey have: this object
|
|
1805
|
+
* carries the same two keys. Viewer and Settings Viewer, who read the
|
|
1806
|
+
* device but not its credentials, read them here until #9014.
|
|
1807
|
+
*/
|
|
1790
1808
|
read: [
|
|
1791
1809
|
Permission_1.default.ProjectOwner,
|
|
1792
1810
|
Permission_1.default.ProjectAdmin,
|
|
1793
1811
|
Permission_1.default.ProjectMember,
|
|
1794
|
-
Permission_1.default.Viewer,
|
|
1795
1812
|
Permission_1.default.SettingsAdmin,
|
|
1796
1813
|
Permission_1.default.SettingsMember,
|
|
1797
|
-
Permission_1.default.SettingsViewer,
|
|
1798
1814
|
Permission_1.default.ReadNetworkDevice,
|
|
1799
1815
|
],
|
|
1800
1816
|
update: [
|
|
@@ -1805,13 +1821,17 @@ __decorate([
|
|
|
1805
1821
|
Permission_1.default.SettingsMember,
|
|
1806
1822
|
Permission_1.default.EditNetworkDevice,
|
|
1807
1823
|
],
|
|
1808
|
-
})
|
|
1824
|
+
})
|
|
1825
|
+
// Its two keys kept encrypted at rest, its other fields as written.
|
|
1826
|
+
,
|
|
1809
1827
|
(0, TableColumn_1.default)({
|
|
1810
1828
|
secret: true,
|
|
1829
|
+
encrypted: true,
|
|
1830
|
+
encryptedFields: ["authKey", "privKey"],
|
|
1811
1831
|
type: TableColumnType_1.default.JSON,
|
|
1812
1832
|
required: false,
|
|
1813
1833
|
title: "SNMP v3 Authentication",
|
|
1814
|
-
description: "Deprecated: SNMP v3 auth is now stored in the snmpV3* columns below. Retained for reading legacy devices.",
|
|
1834
|
+
description: "Deprecated: SNMP v3 auth is now stored in the snmpV3* columns below. Retained for reading legacy devices. Its authKey and privKey are kept encrypted at rest.",
|
|
1815
1835
|
}),
|
|
1816
1836
|
(0, typeorm_1.Column)({
|
|
1817
1837
|
type: ColumnType_1.default.JSON,
|
|
@@ -1974,17 +1994,20 @@ __decorate([
|
|
|
1974
1994
|
Permission_1.default.SettingsMember,
|
|
1975
1995
|
Permission_1.default.EditNetworkDevice,
|
|
1976
1996
|
],
|
|
1977
|
-
})
|
|
1997
|
+
})
|
|
1998
|
+
// Kept encrypted at rest, as snmpCommunityString is.
|
|
1999
|
+
,
|
|
1978
2000
|
(0, TableColumn_1.default)({
|
|
1979
2001
|
secret: true,
|
|
2002
|
+
encrypted: true,
|
|
1980
2003
|
required: false,
|
|
1981
|
-
type: TableColumnType_1.default.
|
|
2004
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
1982
2005
|
title: "SNMP v3 Authentication Key",
|
|
1983
|
-
description: "SNMP v3 authentication passphrase",
|
|
2006
|
+
description: "SNMP v3 authentication passphrase. Kept encrypted at rest.",
|
|
1984
2007
|
}),
|
|
1985
2008
|
(0, typeorm_1.Column)({
|
|
1986
2009
|
nullable: true,
|
|
1987
|
-
type: ColumnType_1.default.
|
|
2010
|
+
type: ColumnType_1.default.VeryLongText,
|
|
1988
2011
|
}),
|
|
1989
2012
|
__metadata("design:type", String)
|
|
1990
2013
|
], NetworkDevice.prototype, "snmpV3AuthKey", void 0);
|
|
@@ -2057,17 +2080,20 @@ __decorate([
|
|
|
2057
2080
|
Permission_1.default.SettingsMember,
|
|
2058
2081
|
Permission_1.default.EditNetworkDevice,
|
|
2059
2082
|
],
|
|
2060
|
-
})
|
|
2083
|
+
})
|
|
2084
|
+
// Kept encrypted at rest, as snmpCommunityString is.
|
|
2085
|
+
,
|
|
2061
2086
|
(0, TableColumn_1.default)({
|
|
2062
2087
|
secret: true,
|
|
2088
|
+
encrypted: true,
|
|
2063
2089
|
required: false,
|
|
2064
|
-
type: TableColumnType_1.default.
|
|
2090
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
2065
2091
|
title: "SNMP v3 Privacy Key",
|
|
2066
|
-
description: "SNMP v3 privacy (encryption) passphrase",
|
|
2092
|
+
description: "SNMP v3 privacy (encryption) passphrase. Kept encrypted at rest.",
|
|
2067
2093
|
}),
|
|
2068
2094
|
(0, typeorm_1.Column)({
|
|
2069
2095
|
nullable: true,
|
|
2070
|
-
type: ColumnType_1.default.
|
|
2096
|
+
type: ColumnType_1.default.VeryLongText,
|
|
2071
2097
|
}),
|
|
2072
2098
|
__metadata("design:type", String)
|
|
2073
2099
|
], NetworkDevice.prototype, "snmpV3PrivKey", void 0);
|
|
@@ -443,13 +443,28 @@ __decorate([
|
|
|
443
443
|
Permission_1.default.SettingsMember,
|
|
444
444
|
Permission_1.default.EditNetworkDeviceDiscoveryScan,
|
|
445
445
|
],
|
|
446
|
-
})
|
|
446
|
+
})
|
|
447
|
+
/*
|
|
448
|
+
* KEPT ENCRYPTED AT REST (#9014), with the three flattened credential
|
|
449
|
+
* columns below and the devices' they are copied into: each entry's
|
|
450
|
+
* community string and v3 keys, encrypted inside the entry
|
|
451
|
+
* (`encryptedFields`), its id, name, version, port, username and protocols
|
|
452
|
+
* as written. The list keeps its shape, so every reader of it -
|
|
453
|
+
* SnmpScanConfigUtil, the probe, both import paths - reads the list it
|
|
454
|
+
* always did, decrypted by DatabaseService; a server of the release
|
|
455
|
+
* before, during an upgrade, reads a list too, whose secrets it cannot
|
|
456
|
+
* use, rather than a list that is not one. The EncryptSnmpCredentials data
|
|
457
|
+
* migration encrypts the lists stored before.
|
|
458
|
+
*/
|
|
459
|
+
,
|
|
447
460
|
(0, TableColumn_1.default)({
|
|
448
461
|
secret: true,
|
|
462
|
+
encrypted: true,
|
|
463
|
+
encryptedFields: ["snmpCommunityString", "snmpV3AuthKey", "snmpV3PrivKey"],
|
|
449
464
|
required: false,
|
|
450
465
|
type: TableColumnType_1.default.JSON,
|
|
451
466
|
title: "SNMP Configs",
|
|
452
|
-
description: "Ordered list of SNMP credential sets tried against every host in the subnet, first match wins. Each entry carries an id, an optional name, a version, a community string or the v3 credentials, and a port. When empty, the scan uses the single flattened SNMP configuration on this row.",
|
|
467
|
+
description: "Ordered list of SNMP credential sets tried against every host in the subnet, first match wins. Each entry carries an id, an optional name, a version, a community string or the v3 credentials, and a port. When empty, the scan uses the single flattened SNMP configuration on this row. Each entry's community string and v3 keys are kept encrypted at rest.",
|
|
453
468
|
}),
|
|
454
469
|
(0, typeorm_1.Column)({
|
|
455
470
|
nullable: true,
|
|
@@ -665,19 +680,21 @@ __decorate([
|
|
|
665
680
|
Permission_1.default.SettingsMember,
|
|
666
681
|
Permission_1.default.EditNetworkDeviceDiscoveryScan,
|
|
667
682
|
],
|
|
668
|
-
})
|
|
683
|
+
})
|
|
684
|
+
// Kept encrypted at rest, as snmpConfigs above is. Text, which a ciphertext fits.
|
|
685
|
+
,
|
|
669
686
|
(0, TableColumn_1.default)({
|
|
670
687
|
secret: true,
|
|
688
|
+
encrypted: true,
|
|
671
689
|
required: false,
|
|
672
|
-
type: TableColumnType_1.default.
|
|
690
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
673
691
|
title: "SNMP Community String",
|
|
674
|
-
description: "Community string tried against every host in the subnet (SNMP v1/v2c). Ignored on an ICMP scan.",
|
|
692
|
+
description: "Community string tried against every host in the subnet (SNMP v1/v2c). Ignored on an ICMP scan. Kept encrypted at rest.",
|
|
675
693
|
example: "public",
|
|
676
694
|
}),
|
|
677
695
|
(0, typeorm_1.Column)({
|
|
678
696
|
nullable: true,
|
|
679
|
-
type: ColumnType_1.default.
|
|
680
|
-
length: ColumnLength_1.default.ShortText,
|
|
697
|
+
type: ColumnType_1.default.VeryLongText,
|
|
681
698
|
}),
|
|
682
699
|
__metadata("design:type", String)
|
|
683
700
|
], NetworkDeviceDiscoveryScan.prototype, "snmpCommunityString", void 0);
|
|
@@ -879,17 +896,20 @@ __decorate([
|
|
|
879
896
|
Permission_1.default.SettingsMember,
|
|
880
897
|
Permission_1.default.EditNetworkDeviceDiscoveryScan,
|
|
881
898
|
],
|
|
882
|
-
})
|
|
899
|
+
})
|
|
900
|
+
// Kept encrypted at rest, as snmpConfigs above is.
|
|
901
|
+
,
|
|
883
902
|
(0, TableColumn_1.default)({
|
|
884
903
|
secret: true,
|
|
904
|
+
encrypted: true,
|
|
885
905
|
required: false,
|
|
886
|
-
type: TableColumnType_1.default.
|
|
906
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
887
907
|
title: "SNMP v3 Authentication Key",
|
|
888
|
-
description: "SNMP v3 authentication passphrase tried against every host. Ignored on an ICMP scan.",
|
|
908
|
+
description: "SNMP v3 authentication passphrase tried against every host. Ignored on an ICMP scan. Kept encrypted at rest.",
|
|
889
909
|
}),
|
|
890
910
|
(0, typeorm_1.Column)({
|
|
891
911
|
nullable: true,
|
|
892
|
-
type: ColumnType_1.default.
|
|
912
|
+
type: ColumnType_1.default.VeryLongText,
|
|
893
913
|
}),
|
|
894
914
|
__metadata("design:type", String)
|
|
895
915
|
], NetworkDeviceDiscoveryScan.prototype, "snmpV3AuthKey", void 0);
|
|
@@ -962,17 +982,20 @@ __decorate([
|
|
|
962
982
|
Permission_1.default.SettingsMember,
|
|
963
983
|
Permission_1.default.EditNetworkDeviceDiscoveryScan,
|
|
964
984
|
],
|
|
965
|
-
})
|
|
985
|
+
})
|
|
986
|
+
// Kept encrypted at rest, as snmpConfigs above is.
|
|
987
|
+
,
|
|
966
988
|
(0, TableColumn_1.default)({
|
|
967
989
|
secret: true,
|
|
990
|
+
encrypted: true,
|
|
968
991
|
required: false,
|
|
969
|
-
type: TableColumnType_1.default.
|
|
992
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
970
993
|
title: "SNMP v3 Privacy Key",
|
|
971
|
-
description: "SNMP v3 privacy (encryption) passphrase tried against every host. Ignored on an ICMP scan.",
|
|
994
|
+
description: "SNMP v3 privacy (encryption) passphrase tried against every host. Ignored on an ICMP scan. Kept encrypted at rest.",
|
|
972
995
|
}),
|
|
973
996
|
(0, typeorm_1.Column)({
|
|
974
997
|
nullable: true,
|
|
975
|
-
type: ColumnType_1.default.
|
|
998
|
+
type: ColumnType_1.default.VeryLongText,
|
|
976
999
|
}),
|
|
977
1000
|
__metadata("design:type", String)
|
|
978
1001
|
], NetworkDeviceDiscoveryScan.prototype, "snmpV3PrivKey", void 0);
|
|
@@ -363,10 +363,10 @@ __decorate([
|
|
|
363
363
|
* which is why this column, like every other encrypted text column in the
|
|
364
364
|
* schema (MonitorSecret.secretValue, RunbookVariable.secretValue), is `text`.
|
|
365
365
|
*
|
|
366
|
-
* The device's own snmpCommunityString
|
|
367
|
-
*
|
|
368
|
-
*
|
|
369
|
-
*
|
|
366
|
+
* The device's own snmpCommunityString, and a discovery scan's, are kept
|
|
367
|
+
* encrypted at rest too since #9014, in text columns: the
|
|
368
|
+
* EncryptSnmpCredentials data migration encrypted the rows that predate
|
|
369
|
+
* it.
|
|
370
370
|
*/
|
|
371
371
|
,
|
|
372
372
|
(0, TableColumn_1.default)({
|
|
@@ -236,18 +236,29 @@ __decorate([
|
|
|
236
236
|
create: createPermissions,
|
|
237
237
|
read: readPermissions,
|
|
238
238
|
update: updatePermissions,
|
|
239
|
-
})
|
|
239
|
+
})
|
|
240
|
+
/*
|
|
241
|
+
* A webhook's address is a credential: whoever holds it posts to the
|
|
242
|
+
* endpoint as OneUptime. Kept encrypted at rest (`encrypted: true`), the
|
|
243
|
+
* address the column's transformer writes, decrypted before it reads it
|
|
244
|
+
* (EncryptedColumnValue); still read by who reads it today. The
|
|
245
|
+
* EncryptWebhookAddresses data migration encrypts the addresses stored
|
|
246
|
+
* before. Text, which a ciphertext fits.
|
|
247
|
+
*/
|
|
248
|
+
,
|
|
240
249
|
(0, TableColumn_1.default)({
|
|
250
|
+
secret: true,
|
|
251
|
+
encrypted: true,
|
|
241
252
|
required: false,
|
|
242
|
-
type: TableColumnType_1.default.
|
|
253
|
+
type: TableColumnType_1.default.LongURL,
|
|
243
254
|
title: "Webhook",
|
|
244
|
-
description: "The address told by a POST of JSON. A notice has an email or a webhook, and changing either turns it off until an operator has seen the preview again.",
|
|
255
|
+
description: "The address told by a POST of JSON. A notice has an email or a webhook, and changing either turns it off until an operator has seen the preview again. Kept encrypted at rest.",
|
|
245
256
|
example: "https://example.com/openstack-notices",
|
|
246
257
|
}),
|
|
247
258
|
(0, typeorm_1.Column)({
|
|
248
259
|
nullable: true,
|
|
249
|
-
type: ColumnType_1.default.
|
|
250
|
-
transformer: URL_1.default.
|
|
260
|
+
type: ColumnType_1.default.LongURL,
|
|
261
|
+
transformer: URL_1.default.getEncryptedDatabaseTransformer(),
|
|
251
262
|
}),
|
|
252
263
|
__metadata("design:type", URL_1.default)
|
|
253
264
|
], OpenStackProjectNotice.prototype, "webhookUrl", void 0);
|
|
@@ -376,17 +387,25 @@ __decorate([
|
|
|
376
387
|
create: [],
|
|
377
388
|
read: [],
|
|
378
389
|
update: [],
|
|
379
|
-
})
|
|
390
|
+
})
|
|
391
|
+
/*
|
|
392
|
+
* "webhook:<address>" for a notice that posts to a webhook: a copy of the
|
|
393
|
+
* address, so kept encrypted at rest beside it (`encrypted: true`). Text,
|
|
394
|
+
* which a ciphertext fits - and which a long address or email fits too: a
|
|
395
|
+
* notice whose address with its "webhook:" ran past 100 characters could
|
|
396
|
+
* not be turned on.
|
|
397
|
+
*/
|
|
398
|
+
,
|
|
380
399
|
(0, TableColumn_1.default)({
|
|
381
400
|
required: false,
|
|
382
|
-
|
|
401
|
+
encrypted: true,
|
|
402
|
+
type: TableColumnType_1.default.VeryLongText,
|
|
383
403
|
title: "Previewed Recipient",
|
|
384
|
-
description: "The recipient the preview was of. A notice sends only while this is still who it tells. Used by OneUptime only.",
|
|
404
|
+
description: "The recipient the preview was of. A notice sends only while this is still who it tells. Used by OneUptime only. Kept encrypted at rest.",
|
|
385
405
|
}),
|
|
386
406
|
(0, typeorm_1.Column)({
|
|
387
407
|
nullable: true,
|
|
388
|
-
type: ColumnType_1.default.
|
|
389
|
-
length: ColumnLength_1.default.ShortText,
|
|
408
|
+
type: ColumnType_1.default.VeryLongText,
|
|
390
409
|
}),
|
|
391
410
|
__metadata("design:type", String)
|
|
392
411
|
], OpenStackProjectNotice.prototype, "previewedRecipient", void 0);
|
|
@@ -2,13 +2,14 @@ import Project from "./Project.mjs";
|
|
|
2
2
|
import Team from "./Team.mjs";
|
|
3
3
|
import User from "./User.mjs";
|
|
4
4
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
5
|
+
import HashedString from "../../Types/HashedString.mjs";
|
|
5
6
|
import ObjectID from "../../Types/ObjectID.mjs";
|
|
6
7
|
export default class ProjectSCIM extends BaseModel {
|
|
7
8
|
project?: Project;
|
|
8
9
|
projectId?: ObjectID;
|
|
9
10
|
name?: string;
|
|
10
11
|
description?: string;
|
|
11
|
-
bearerToken?:
|
|
12
|
+
bearerToken?: HashedString;
|
|
12
13
|
oauthClientSecretHash?: string;
|
|
13
14
|
oauthClientSecretExpiresAt?: Date;
|
|
14
15
|
oauthPreviousClientSecretHash?: string;
|
|
@@ -2,13 +2,14 @@ import Project from "./Project";
|
|
|
2
2
|
import Team from "./Team";
|
|
3
3
|
import User from "./User";
|
|
4
4
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
5
|
+
import HashedString from "../../Types/HashedString";
|
|
5
6
|
import ObjectID from "../../Types/ObjectID";
|
|
6
7
|
export default class ProjectSCIM extends BaseModel {
|
|
7
8
|
project?: Project;
|
|
8
9
|
projectId?: ObjectID;
|
|
9
10
|
name?: string;
|
|
10
11
|
description?: string;
|
|
11
|
-
bearerToken?:
|
|
12
|
+
bearerToken?: HashedString;
|
|
12
13
|
oauthClientSecretHash?: string;
|
|
13
14
|
oauthClientSecretExpiresAt?: Date;
|
|
14
15
|
oauthPreviousClientSecretHash?: string;
|
|
@@ -31,6 +31,7 @@ const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetad
|
|
|
31
31
|
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
32
32
|
const UniqueColumnBy_1 = __importDefault(require("../../Types/Database/UniqueColumnBy"));
|
|
33
33
|
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
34
|
+
const HashedString_1 = __importDefault(require("../../Types/HashedString"));
|
|
34
35
|
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
35
36
|
const Permission_1 = __importDefault(require("../../Types/Permission"));
|
|
36
37
|
const typeorm_1 = require("typeorm");
|
|
@@ -42,11 +43,20 @@ let ProjectSCIM = class ProjectSCIM extends DatabaseBaseModel_1.default {
|
|
|
42
43
|
this.name = undefined;
|
|
43
44
|
this.description = undefined;
|
|
44
45
|
/*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
46
|
+
* The token is what the identity provider adds people to teams with - its
|
|
47
|
+
* Groups endpoints reach every team - so setting it takes the access that
|
|
48
|
+
* saving the connection takes (Server/Utils/SsoProviderTeamGrant): a
|
|
49
|
+
* project owner's.
|
|
50
|
+
*
|
|
51
|
+
* Kept only as its hash (#9012: PresentedKey.toStoredHash, written by
|
|
52
|
+
* DatabaseService whatever writes it), so a backup or a database dump
|
|
53
|
+
* holds no token, and nobody reads it back, a master admin included. It is
|
|
54
|
+
* pasted once into the identity provider: the create that makes the
|
|
55
|
+
* connection answers it once, and Reset Bearer Token makes a new one. A
|
|
56
|
+
* token stored as written before is hashed in place by the
|
|
57
|
+
* PresentedKeys:ProtectAtRest job, and keeps working throughout: a
|
|
58
|
+
* request's token is matched by its hash, in the query, and as written
|
|
59
|
+
* until then (SCIMAuthorization.findConnection).
|
|
50
60
|
*/
|
|
51
61
|
this.bearerToken = undefined;
|
|
52
62
|
/*
|
|
@@ -199,22 +209,24 @@ __decorate([
|
|
|
199
209
|
__decorate([
|
|
200
210
|
(0, ColumnAccessControl_1.default)({
|
|
201
211
|
create: [Permission_1.default.ProjectOwner],
|
|
202
|
-
read: [
|
|
212
|
+
read: [],
|
|
203
213
|
update: [Permission_1.default.ProjectOwner],
|
|
204
214
|
}),
|
|
205
215
|
(0, TableColumn_1.default)({
|
|
206
216
|
secret: true,
|
|
217
|
+
presentedKey: true,
|
|
207
218
|
required: true,
|
|
208
|
-
type: TableColumnType_1.default.
|
|
219
|
+
type: TableColumnType_1.default.HashedString,
|
|
209
220
|
title: "Bearer Token",
|
|
210
|
-
description: "
|
|
221
|
+
description: "The bearer token the identity provider signs in to SCIM with. Write-only: OneUptime keeps only its hash, and answers it once, to the create that makes the connection. Leave it out and OneUptime makes one; a new value replaces it, and the one before stops working.",
|
|
211
222
|
}),
|
|
212
223
|
(0, typeorm_1.Column)({
|
|
213
224
|
nullable: false,
|
|
214
225
|
type: ColumnType_1.default.LongText,
|
|
215
226
|
length: ColumnLength_1.default.LongText,
|
|
227
|
+
transformer: HashedString_1.default.getDatabaseTransformer(),
|
|
216
228
|
}),
|
|
217
|
-
__metadata("design:type",
|
|
229
|
+
__metadata("design:type", HashedString_1.default)
|
|
218
230
|
], ProjectSCIM.prototype, "bearerToken", void 0);
|
|
219
231
|
__decorate([
|
|
220
232
|
(0, ColumnAccessControl_1.default)({
|
|
@@ -836,14 +836,15 @@ __decorate([
|
|
|
836
836
|
}),
|
|
837
837
|
(0, TableColumn_1.default)({
|
|
838
838
|
secret: true,
|
|
839
|
+
encrypted: true,
|
|
840
|
+
presentedKey: true,
|
|
839
841
|
type: TableColumnType_1.default.ShortText,
|
|
840
842
|
title: "Webhook Secret Key",
|
|
841
843
|
description: "The secret part of the runbook's webhook URL. Not readable through the API; the runbook's Triggers page shows it to people who may edit and run the runbook.",
|
|
842
844
|
}),
|
|
843
845
|
(0, typeorm_1.Column)({
|
|
844
846
|
nullable: true,
|
|
845
|
-
type: ColumnType_1.default.
|
|
846
|
-
length: ColumnLength_1.default.ShortText,
|
|
847
|
+
type: ColumnType_1.default.VeryLongText,
|
|
847
848
|
}),
|
|
848
849
|
__metadata("design:type", String)
|
|
849
850
|
], Runbook.prototype, "webhookSecretKey", void 0);
|
|
@@ -4196,14 +4196,15 @@ __decorate([
|
|
|
4196
4196
|
(0, typeorm_1.Index)(),
|
|
4197
4197
|
(0, TableColumn_1.default)({
|
|
4198
4198
|
secret: true,
|
|
4199
|
+
encrypted: true,
|
|
4200
|
+
presentedKey: true,
|
|
4199
4201
|
type: TableColumnType_1.default.ShortText,
|
|
4200
4202
|
required: false,
|
|
4201
4203
|
title: "Embedded Overall Status Token",
|
|
4202
4204
|
description: "Security token required to access the embedded overall status badge. This token must be provided in the URL.",
|
|
4203
4205
|
}),
|
|
4204
4206
|
(0, typeorm_1.Column)({
|
|
4205
|
-
type: ColumnType_1.default.
|
|
4206
|
-
length: ColumnLength_1.default.ShortText,
|
|
4207
|
+
type: ColumnType_1.default.VeryLongText,
|
|
4207
4208
|
nullable: true,
|
|
4208
4209
|
}),
|
|
4209
4210
|
(0, ColumnBillingAccessControl_1.default)({
|
|
@@ -2,6 +2,7 @@ import Project from "./Project.mjs";
|
|
|
2
2
|
import StatusPage from "./StatusPage.mjs";
|
|
3
3
|
import User from "./User.mjs";
|
|
4
4
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel.mjs";
|
|
5
|
+
import HashedString from "../../Types/HashedString.mjs";
|
|
5
6
|
import ObjectID from "../../Types/ObjectID.mjs";
|
|
6
7
|
export default class StatusPageSCIM extends BaseModel {
|
|
7
8
|
project?: Project;
|
|
@@ -10,7 +11,7 @@ export default class StatusPageSCIM extends BaseModel {
|
|
|
10
11
|
statusPageId?: ObjectID;
|
|
11
12
|
name?: string;
|
|
12
13
|
description?: string;
|
|
13
|
-
bearerToken?:
|
|
14
|
+
bearerToken?: HashedString;
|
|
14
15
|
oauthClientSecretHash?: string;
|
|
15
16
|
oauthClientSecretExpiresAt?: Date;
|
|
16
17
|
oauthPreviousClientSecretHash?: string;
|
|
@@ -2,6 +2,7 @@ import Project from "./Project";
|
|
|
2
2
|
import StatusPage from "./StatusPage";
|
|
3
3
|
import User from "./User";
|
|
4
4
|
import BaseModel from "./DatabaseBaseModel/DatabaseBaseModel";
|
|
5
|
+
import HashedString from "../../Types/HashedString";
|
|
5
6
|
import ObjectID from "../../Types/ObjectID";
|
|
6
7
|
export default class StatusPageSCIM extends BaseModel {
|
|
7
8
|
project?: Project;
|
|
@@ -10,7 +11,7 @@ export default class StatusPageSCIM extends BaseModel {
|
|
|
10
11
|
statusPageId?: ObjectID;
|
|
11
12
|
name?: string;
|
|
12
13
|
description?: string;
|
|
13
|
-
bearerToken?:
|
|
14
|
+
bearerToken?: HashedString;
|
|
14
15
|
oauthClientSecretHash?: string;
|
|
15
16
|
oauthClientSecretExpiresAt?: Date;
|
|
16
17
|
oauthPreviousClientSecretHash?: string;
|
|
@@ -34,6 +34,7 @@ const TableMetadata_1 = __importDefault(require("../../Types/Database/TableMetad
|
|
|
34
34
|
const TenantColumn_1 = __importDefault(require("../../Types/Database/TenantColumn"));
|
|
35
35
|
const UniqueColumnBy_1 = __importDefault(require("../../Types/Database/UniqueColumnBy"));
|
|
36
36
|
const IconProp_1 = __importDefault(require("../../Types/Icon/IconProp"));
|
|
37
|
+
const HashedString_1 = __importDefault(require("../../Types/HashedString"));
|
|
37
38
|
const ObjectID_1 = __importDefault(require("../../Types/ObjectID"));
|
|
38
39
|
const Permission_1 = __importDefault(require("../../Types/Permission"));
|
|
39
40
|
const typeorm_1 = require("typeorm");
|
|
@@ -46,6 +47,16 @@ let StatusPageSCIM = class StatusPageSCIM extends DatabaseBaseModel_1.default {
|
|
|
46
47
|
this.statusPageId = undefined;
|
|
47
48
|
this.name = undefined;
|
|
48
49
|
this.description = undefined;
|
|
50
|
+
/*
|
|
51
|
+
* Kept only as its hash (#9012: PresentedKey.toStoredHash, written by
|
|
52
|
+
* DatabaseService whatever writes it), so a backup or a database dump
|
|
53
|
+
* holds no token, and nobody reads it back. It is pasted once into the
|
|
54
|
+
* identity provider: the create that makes the connection answers it
|
|
55
|
+
* once, and Reset Bearer Token makes a new one. A token stored as written
|
|
56
|
+
* before is hashed in place by the PresentedKeys:ProtectAtRest job, and
|
|
57
|
+
* keeps working throughout: a request's token is matched by its hash, in
|
|
58
|
+
* the query, and as written until then (SCIMAuthorization.findConnection).
|
|
59
|
+
*/
|
|
49
60
|
this.bearerToken = undefined;
|
|
50
61
|
/*
|
|
51
62
|
* OAuth 2.0 client credentials (RFC 6749, section 4.4), for identity
|
|
@@ -276,11 +287,7 @@ __decorate([
|
|
|
276
287
|
Permission_1.default.ProjectAdmin,
|
|
277
288
|
Permission_1.default.CreateStatusPageSSO,
|
|
278
289
|
],
|
|
279
|
-
read: [
|
|
280
|
-
Permission_1.default.ProjectOwner,
|
|
281
|
-
Permission_1.default.ProjectAdmin,
|
|
282
|
-
Permission_1.default.ReadStatusPageSSO,
|
|
283
|
-
],
|
|
290
|
+
read: [],
|
|
284
291
|
update: [
|
|
285
292
|
Permission_1.default.ProjectOwner,
|
|
286
293
|
Permission_1.default.ProjectAdmin,
|
|
@@ -289,17 +296,19 @@ __decorate([
|
|
|
289
296
|
}),
|
|
290
297
|
(0, TableColumn_1.default)({
|
|
291
298
|
secret: true,
|
|
299
|
+
presentedKey: true,
|
|
292
300
|
required: true,
|
|
293
|
-
type: TableColumnType_1.default.
|
|
301
|
+
type: TableColumnType_1.default.HashedString,
|
|
294
302
|
title: "Bearer Token",
|
|
295
|
-
description: "
|
|
303
|
+
description: "The bearer token the identity provider signs in to SCIM with. Write-only: OneUptime keeps only its hash, and answers it once, to the create that makes the connection. Leave it out and OneUptime makes one; a new value replaces it, and the one before stops working.",
|
|
296
304
|
}),
|
|
297
305
|
(0, typeorm_1.Column)({
|
|
298
306
|
nullable: false,
|
|
299
307
|
type: ColumnType_1.default.LongText,
|
|
300
308
|
length: ColumnLength_1.default.LongText,
|
|
309
|
+
transformer: HashedString_1.default.getDatabaseTransformer(),
|
|
301
310
|
}),
|
|
302
|
-
__metadata("design:type",
|
|
311
|
+
__metadata("design:type", HashedString_1.default)
|
|
303
312
|
], StatusPageSCIM.prototype, "bearerToken", void 0);
|
|
304
313
|
__decorate([
|
|
305
314
|
(0, ColumnAccessControl_1.default)({
|