summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJishnu CM <jishnunambiarcm@duck.com>2024-10-01 09:33:49 +0300
committerJishnu C M <jishnunambiarcm@duck.com>2024-10-01 18:22:44 +0300
commitb575caefa7f7f58c67cf61c8aa7ba7fb5a43e943 (patch)
treebc9f25b2a875075a14c7ea66c881b8d8d6664327
parentd3e0859cb6cd76ab30204aad107971a6e1b59b5d (diff)
downloadbmcweb-b575caefa7f7f58c67cf61c8aa7ba7fb5a43e943.tar.xz
Bump base registry to 1.19.0
Adds GenerateSecretKeyRequired registry to the Base for MFA Change-Id: Ia690639b4bebbbd265b223bd626b0eb814103f99 Signed-off-by: Jishnu CM <jishnunambiarcm@duck.com>
-rw-r--r--redfish-core/include/registries/base_message_registry.hpp198
-rwxr-xr-xscripts/parse_registries.py2
-rw-r--r--test/redfish-core/include/utils/dbus_utils.cpp6
3 files changed, 115 insertions, 91 deletions
diff --git a/redfish-core/include/registries/base_message_registry.hpp b/redfish-core/include/registries/base_message_registry.hpp
index 5f3b027b16..8f89a6f3d6 100644
--- a/redfish-core/include/registries/base_message_registry.hpp
+++ b/redfish-core/include/registries/base_message_registry.hpp
@@ -20,16 +20,16 @@ namespace redfish::registries::base
const Header header = {
"Copyright 2014-2024 DMTF. All rights reserved.",
"#MessageRegistry.v1_6_2.MessageRegistry",
- "Base.1.18.1",
+ "Base.1.19.0",
"Base Message Registry",
"en",
"This registry defines the base messages for Redfish.",
"Base",
- "1.18.1",
+ "1.19.0",
"DMTF",
};
constexpr const char* url =
- "https://redfish.dmtf.org/registries/Base.1.18.1.json";
+ "https://redfish.dmtf.org/registries/Base.1.19.0.json";
constexpr std::array registry =
{
@@ -398,6 +398,18 @@ constexpr std::array registry =
"None.",
}},
MessageEntry{
+ "GenerateSecretKeyRequired",
+ {
+ "Indicates that the Time-based One-Time Password (TOTP) secret key needs to be generated for the account before accessing the service. The secret key can be generated with a `POST` to the `GenerateSecretKey` action for the `ManagerAccount` resource instance.",
+ "The Time-based One-Time Password (TOTP) secret key for this account must be generated before access is granted. Perform the GenerateSecretKey action at URI '%1' and retain the secret key from the response.",
+ "Critical",
+ 1,
+ {
+ "string",
+ },
+ "Generate secret key for this account by performing the `GenerateSecretKey` action on the referenced URI and retaining the secret key from the action response to produce a Time-based One-Time Password (TOTP) for the `Token` property in future session creation requests.",
+ }},
+ MessageEntry{
"HeaderInvalid",
{
"Indicates that a request header is invalid.",
@@ -584,14 +596,14 @@ constexpr std::array registry =
MessageEntry{
"OneTimePasscodeSent",
{
- "Indicates that a required one-time passcode was sent to the user. The code should be provided as the `Token` property in the request to create a session.",
- "A one-time passcode was sent to: %1. Supply the passcode as the Token property in the request to create a session.",
+ "Indicates that a required one-time passcode was sent to the user. The code should be provided as the Token property in the request to create a session.",
+ "A one-time passcode was sent to: %1. Supply the passcode as the `Token` property in the request to create a session.",
"OK",
1,
{
"string",
},
- "Obtain the one-time passcode sent to the delivery address and resubmit the request using the passcode as the Token property.",
+ "Obtain the one-time passcode sent to the delivery address and resubmit the request using the passcode as the `Token` property.",
}},
MessageEntry{
"OperationFailed",
@@ -702,6 +714,16 @@ constexpr std::array registry =
"Ensure that the property is in the request body and has a valid value and resubmit the request if the operation failed.",
}},
MessageEntry{
+ "PropertyModified",
+ {
+ "Indicates that all properties listed in `RelatedProperties` in the message were successfully modified.",
+ "One or more properties were successfully modified.",
+ "OK",
+ 0,
+ {},
+ "None.",
+ }},
+ MessageEntry{
"PropertyNotUpdated",
{
"Indicates that a property was not updated due to an internal service error, but the service is still functional.",
@@ -1370,86 +1392,88 @@ enum class Index
eventBufferExceeded = 28,
eventSubscriptionLimitExceeded = 29,
generalError = 30,
- headerInvalid = 31,
- headerMissing = 32,
- insufficientPrivilege = 33,
- insufficientStorage = 34,
- internalError = 35,
- invalidIndex = 36,
- invalidJSON = 37,
- invalidObject = 38,
- invalidURI = 39,
- licenseRequired = 40,
- malformedJSON = 41,
- maximumErrorsExceeded = 42,
- missingOrMalformedPart = 43,
- networkNameResolutionNotConfigured = 44,
- networkNameResolutionNotSupported = 45,
- noOperation = 46,
- noValidSession = 47,
- oneTimePasscodeSent = 48,
- operationFailed = 49,
- operationNotAllowed = 50,
- operationTimeout = 51,
- passwordChangeRequired = 52,
- payloadTooLarge = 53,
- preconditionFailed = 54,
- preconditionRequired = 55,
- propertyDeprecated = 56,
- propertyDuplicate = 57,
- propertyMissing = 58,
- propertyNotUpdated = 59,
- propertyNotWritable = 60,
- propertyUnknown = 61,
- propertyValueConflict = 62,
- propertyValueDeprecated = 63,
- propertyValueError = 64,
- propertyValueExternalConflict = 65,
- propertyValueFormatError = 66,
- propertyValueIncorrect = 67,
- propertyValueModified = 68,
- propertyValueNotInList = 69,
- propertyValueOutOfRange = 70,
- propertyValueResourceConflict = 71,
- propertyValueTypeError = 72,
- queryCombinationInvalid = 73,
- queryNotSupported = 74,
- queryNotSupportedOnOperation = 75,
- queryNotSupportedOnResource = 76,
- queryParameterOutOfRange = 77,
- queryParameterUnsupported = 78,
- queryParameterValueError = 79,
- queryParameterValueFormatError = 80,
- queryParameterValueTypeError = 81,
- resetRecommended = 82,
- resetRequired = 83,
- resourceAlreadyExists = 84,
- resourceAtUriInUnknownFormat = 85,
- resourceAtUriUnauthorized = 86,
- resourceCannotBeDeleted = 87,
- resourceCreationConflict = 88,
- resourceDeprecated = 89,
- resourceExhaustion = 90,
- resourceInStandby = 91,
- resourceInUse = 92,
- resourceMissingAtURI = 93,
- resourceNotFound = 94,
- resourceTypeIncompatible = 95,
- restrictedPrivilege = 96,
- restrictedRole = 97,
- serviceDisabled = 98,
- serviceInUnknownState = 99,
- serviceShuttingDown = 100,
- serviceTemporarilyUnavailable = 101,
- sessionLimitExceeded = 102,
- sessionTerminated = 103,
- sourceDoesNotSupportProtocol = 104,
- strictAccountTypes = 105,
- stringValueTooLong = 106,
- stringValueTooShort = 107,
- subscriptionTerminated = 108,
- success = 109,
- undeterminedFault = 110,
- unrecognizedRequestBody = 111,
+ generateSecretKeyRequired = 31,
+ headerInvalid = 32,
+ headerMissing = 33,
+ insufficientPrivilege = 34,
+ insufficientStorage = 35,
+ internalError = 36,
+ invalidIndex = 37,
+ invalidJSON = 38,
+ invalidObject = 39,
+ invalidURI = 40,
+ licenseRequired = 41,
+ malformedJSON = 42,
+ maximumErrorsExceeded = 43,
+ missingOrMalformedPart = 44,
+ networkNameResolutionNotConfigured = 45,
+ networkNameResolutionNotSupported = 46,
+ noOperation = 47,
+ noValidSession = 48,
+ oneTimePasscodeSent = 49,
+ operationFailed = 50,
+ operationNotAllowed = 51,
+ operationTimeout = 52,
+ passwordChangeRequired = 53,
+ payloadTooLarge = 54,
+ preconditionFailed = 55,
+ preconditionRequired = 56,
+ propertyDeprecated = 57,
+ propertyDuplicate = 58,
+ propertyMissing = 59,
+ propertyModified = 60,
+ propertyNotUpdated = 61,
+ propertyNotWritable = 62,
+ propertyUnknown = 63,
+ propertyValueConflict = 64,
+ propertyValueDeprecated = 65,
+ propertyValueError = 66,
+ propertyValueExternalConflict = 67,
+ propertyValueFormatError = 68,
+ propertyValueIncorrect = 69,
+ propertyValueModified = 70,
+ propertyValueNotInList = 71,
+ propertyValueOutOfRange = 72,
+ propertyValueResourceConflict = 73,
+ propertyValueTypeError = 74,
+ queryCombinationInvalid = 75,
+ queryNotSupported = 76,
+ queryNotSupportedOnOperation = 77,
+ queryNotSupportedOnResource = 78,
+ queryParameterOutOfRange = 79,
+ queryParameterUnsupported = 80,
+ queryParameterValueError = 81,
+ queryParameterValueFormatError = 82,
+ queryParameterValueTypeError = 83,
+ resetRecommended = 84,
+ resetRequired = 85,
+ resourceAlreadyExists = 86,
+ resourceAtUriInUnknownFormat = 87,
+ resourceAtUriUnauthorized = 88,
+ resourceCannotBeDeleted = 89,
+ resourceCreationConflict = 90,
+ resourceDeprecated = 91,
+ resourceExhaustion = 92,
+ resourceInStandby = 93,
+ resourceInUse = 94,
+ resourceMissingAtURI = 95,
+ resourceNotFound = 96,
+ resourceTypeIncompatible = 97,
+ restrictedPrivilege = 98,
+ restrictedRole = 99,
+ serviceDisabled = 100,
+ serviceInUnknownState = 101,
+ serviceShuttingDown = 102,
+ serviceTemporarilyUnavailable = 103,
+ sessionLimitExceeded = 104,
+ sessionTerminated = 105,
+ sourceDoesNotSupportProtocol = 106,
+ strictAccountTypes = 107,
+ stringValueTooLong = 108,
+ stringValueTooShort = 109,
+ subscriptionTerminated = 110,
+ success = 111,
+ undeterminedFault = 112,
+ unrecognizedRequestBody = 113,
};
} // namespace redfish::registries::base
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 70d0fec20f..4c1e7b86c2 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -244,7 +244,7 @@ def to_pascal_case(text):
def main():
dmtf_registries = (
- ("base", "1.18.1"),
+ ("base", "1.19.0"),
("composition", "1.1.2"),
("environmental", "1.0.1"),
("ethernet_fabric", "1.0.1"),
diff --git a/test/redfish-core/include/utils/dbus_utils.cpp b/test/redfish-core/include/utils/dbus_utils.cpp
index c768f92d82..6a941c246b 100644
--- a/test/redfish-core/include/utils/dbus_utils.cpp
+++ b/test/redfish-core/include/utils/dbus_utils.cpp
@@ -50,7 +50,7 @@ TEST(DbusUtils, AfterActionPropertySetSuccess)
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The request completed successfully.",
"MessageArgs": [],
- "MessageId": "Base.1.18.1.Success",
+ "MessageId": "Base.1.19.0.Success",
"MessageSeverity": "OK",
"Resolution": "None."
}
@@ -82,12 +82,12 @@ TEST(DbusUtils, AfterPropertySetInternalError)
"@odata.type": "#Message.v1_1_1.Message",
"Message": "The request failed due to an internal service error. The service is still operational.",
"MessageArgs": [],
- "MessageId": "Base.1.18.1.InternalError",
+ "MessageId": "Base.1.19.0.InternalError",
"MessageSeverity": "Critical",
"Resolution": "Resubmit the request. If the problem persists, consider resetting the service."
}
],
- "code": "Base.1.18.1.InternalError",
+ "code": "Base.1.19.0.InternalError",
"message": "The request failed due to an internal service error. The service is still operational."
}
})"_json);