| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 1 | # BMCWEB_KVM |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 2 | option( |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 3 | 'kvm', |
| 4 | type: 'feature', |
| 5 | value: 'enabled', |
| 6 | description: '''Enable the KVM host video WebSocket. Path is /kvm/0. |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 7 | Video is from the BMCs /dev/videodevice.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 8 | ) |
| 9 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 10 | # BMCWEB_TESTS |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 11 | option( |
| 12 | 'tests', |
| 13 | type: 'feature', |
| 14 | value: 'enabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 15 | description: 'Enable Unit tests for bmcweb', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 16 | ) |
| 17 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 18 | # BMCWEB_VM_WEBSOCKET |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 19 | option( |
| 20 | 'vm-websocket', |
| 21 | type: 'feature', |
| 22 | value: 'enabled', |
| Ed Tanous | 36c0f2a | 2024-02-09 13:50:26 -0800 | [diff] [blame] | 23 | description: '''Enable the Virtual Media WebSocket. Path is /vm/0/0 and /nbd/<id> to |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 24 | open the websocket. See |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 25 | https://github.com/openbmc/jsnbd/blob/master/README.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 26 | ) |
| Ed Tanous | efb8062 | 2021-02-20 11:04:01 -0800 | [diff] [blame] | 27 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 28 | # BMCWEB_NBDPROXY |
| Ed Tanous | efb8062 | 2021-02-20 11:04:01 -0800 | [diff] [blame] | 29 | # if you use this option and are seeing this comment, please comment here: |
| 30 | # https://github.com/openbmc/bmcweb/issues/188 and put forward your intentions |
| 31 | # for this code. At this point, no daemon has been upstreamed that implements |
| 32 | # this interface, so for the moment this appears to be dead code; In leiu of |
| 33 | # removing it, it has been disabled to try to give those that use it the |
| 34 | # opportunity to upstream their backend implementation |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 35 | #option( |
| 36 | # 'vm-nbdproxy', |
| Ed Tanous | 36c0f2a | 2024-02-09 13:50:26 -0800 | [diff] [blame] | 37 | # type: 'feature', |
| 38 | # value: 'disabled', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 39 | # description: 'Enable the Virtual Media WebSocket.' |
| 40 | #) |
| 41 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 42 | # BMCWEB_REST |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 43 | option( |
| 44 | 'rest', |
| 45 | type: 'feature', |
| 46 | value: 'disabled', |
| 47 | description: '''Enable Phosphor REST (D-Bus) APIs. Paths directly map |
| 48 | Phosphor D-Bus object paths, for example, |
| 49 | /xyz/openbmc_project/logging/entry/enumerate. See |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 50 | https://github.com/openbmc/docs/blob/master/rest-api.md.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 51 | ) |
| 52 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 53 | # BMCWEB_REDFISH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 54 | option( |
| 55 | 'redfish', |
| 56 | type: 'feature', |
| 57 | value: 'enabled', |
| 58 | description: '''Enable Redfish APIs. Paths are under /redfish/v1/. See |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 59 | https://github.com/openbmc/bmcweb/blob/master/DEVELOPING.md#redfish.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 60 | ) |
| 61 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 62 | # BMCWEB_HOST_SERIAL_SOCKET |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 63 | option( |
| 64 | 'host-serial-socket', |
| 65 | type: 'feature', |
| 66 | value: 'enabled', |
| 67 | description: '''Enable host serial console WebSocket. Path is /console0. |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 68 | See https://github.com/openbmc/docs/blob/master/console.md.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 69 | ) |
| 70 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 71 | # BMCWEB_STATIC_HOSTING |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 72 | option( |
| 73 | 'static-hosting', |
| 74 | type: 'feature', |
| 75 | value: 'enabled', |
| 76 | description: '''Enable serving files from the /usr/share/www directory |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 77 | as paths under /.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 78 | ) |
| 79 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 80 | # BMCWEB_REDFISH_BMC_JOURNAL |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 81 | option( |
| 82 | 'redfish-bmc-journal', |
| 83 | type: 'feature', |
| Willy Tu | f848367 | 2022-05-10 15:08:10 -0700 | [diff] [blame] | 84 | value: 'enabled', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 85 | description: '''Enable BMC journal access through Redfish. Paths are under |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 86 | /redfish/v1/Managers/bmc/LogServices/Journal.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 87 | ) |
| 88 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 89 | # BMCWEB_REDFISH_CPU_LOG |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 90 | option( |
| 91 | 'redfish-cpu-log', |
| 92 | type: 'feature', |
| 93 | value: 'disabled', |
| 94 | description: '''Enable CPU log service transactions through Redfish. Paths |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 95 | are under /redfish/v1/Systems/system/LogServices/Crashdump'.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 96 | ) |
| 97 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 98 | # BMCWEB_REDFISH_DUMP_LOG |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 99 | option( |
| 100 | 'redfish-dump-log', |
| 101 | type: 'feature', |
| Jae Hyun Yoo | dded61d | 2025-11-18 08:21:09 -0800 | [diff] [blame] | 102 | value: 'enabled', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 103 | description: '''Enable Dump log service transactions through Redfish. Paths |
| 104 | are under /redfish/v1/Systems/system/LogServices/Dump |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 105 | and /redfish/v1/Managers/bmc/LogServices/Dump''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 106 | ) |
| 107 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 108 | # BMCWEB_REDFISH_DBUS_LOG |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 109 | option( |
| 110 | 'redfish-dbus-log', |
| 111 | type: 'feature', |
| 112 | value: 'disabled', |
| 113 | description: '''Enable DBUS log service transactions through Redfish. Paths |
| 114 | are under |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 115 | /redfish/v1/Systems/system/LogServices/EventLog/Entries''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 116 | ) |
| 117 | |
| Alexander Hansen | 6c58a03 | 2024-11-21 15:27:04 -0800 | [diff] [blame] | 118 | # BMCWEB_EXPERIMENTAL_REDFISH_DBUS_LOG_SUBSCRIPTION |
| 119 | option( |
| 120 | 'experimental-redfish-dbus-log-subscription', |
| 121 | type: 'feature', |
| 122 | value: 'disabled', |
| 123 | description: ''' |
| 124 | Allows EventService subscriptions when the redfish-dbus-log option is |
| 125 | enabled. |
| 126 | This option is currently non-functional, given Redfish requirements for |
| 127 | MessageId support in Events. |
| Gunnar Mills | c0d6f15 | 2025-11-07 13:46:00 -0600 | [diff] [blame] | 128 | Option will be removed begining of Q2-2026. |
| Alexander Hansen | 6c58a03 | 2024-11-21 15:27:04 -0800 | [diff] [blame] | 129 | Should not be enabled on any production systems. |
| 130 | ''', |
| 131 | ) |
| 132 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 133 | # BMCWEB_REDFISH_HOST_LOGGER |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 134 | option( |
| 135 | 'redfish-host-logger', |
| 136 | type: 'feature', |
| 137 | value: 'enabled', |
| 138 | description: '''Enable host log service transactions based on |
| 139 | phosphor-hostlogger through Redfish. Paths are under |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 140 | /redfish/v1/Systems/system/LogServices/HostLogger''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 141 | ) |
| 142 | |
| Oliver Brewka | 43feb5c | 2025-09-24 12:52:14 +0200 | [diff] [blame] | 143 | # BMCWEB_REDFISH_EVENTLOG_LOCATION |
| 144 | option( |
| 145 | 'redfish-eventlog-location', |
| 146 | type: 'combo', |
| 147 | choices: ['systems', 'managers'], |
| 148 | value: 'systems', |
| 149 | description: '''Set which Redfish resource enables event log service |
| 150 | transactions through Redfish. By default, this option |
| 151 | is set to systems. In that case paths are under |
| 152 | /redfish/v1/Systems/<redfish-system-uri-name>/LogServices/EventLog |
| 153 | Change to managers, for paths to be under |
| 154 | /redfish/v1/Managers/<redfish-manager-uri-name>/LogServices/EventLog''', |
| 155 | ) |
| 156 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 157 | # BMCWEB_REDFISH_PROVISIONING_FEATURE |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 158 | option( |
| 159 | 'redfish-provisioning-feature', |
| 160 | type: 'feature', |
| 161 | value: 'disabled', |
| 162 | description: '''Enable provisioning feature support in redfish. Paths are |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 163 | under /redfish/v1/Systems/system/''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 164 | ) |
| 165 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 166 | # BMCWEB_REDFISH_MANAGER_URI_NAME |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 167 | option( |
| Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 168 | 'redfish-manager-uri-name', |
| 169 | type: 'string', |
| 170 | value: 'bmc', |
| 171 | description: '''The static Redfish Manager ID representing the BMC |
| 172 | instance. This option will appear in the Redfish tree at |
| 173 | /redfish/v1/Managers/<redfish-manager-uri-name>. |
| 174 | Defaults to \'bmc\' which resolves to |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 175 | /redfish/v1/Managers/bmc''', |
| Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 176 | ) |
| 177 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 178 | # BMCWEB_REDFISH_SYSTEM_URI_NAME |
| Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 179 | option( |
| 180 | 'redfish-system-uri-name', |
| 181 | type: 'string', |
| 182 | value: 'system', |
| 183 | description: '''The static Redfish System ID representing the host |
| 184 | instance. This option will appear in the Redfish tree at |
| 185 | /redfish/v1/Systems/<redfish-system-uri-name>. |
| 186 | Defaults to \'system\' which resolves to |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 187 | /redfish/v1/Systems/system''', |
| Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 188 | ) |
| 189 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 190 | # BMCWEB_LOGGING_LEVEL |
| Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 191 | option( |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 192 | 'bmcweb-logging', |
| Myung Bae | 662aa6e | 2023-01-10 14:20:28 -0600 | [diff] [blame] | 193 | type: 'combo', |
| Ed Tanous | 92e26be | 2024-08-21 13:39:14 -0700 | [diff] [blame] | 194 | choices: [ |
| 195 | 'disabled', |
| 196 | 'enabled', |
| 197 | 'debug', |
| 198 | 'info', |
| 199 | 'warning', |
| 200 | 'error', |
| 201 | 'critical', |
| 202 | ], |
| Ed Tanous | 4d1db04 | 2024-02-16 13:08:34 -0800 | [diff] [blame] | 203 | value: 'error', |
| Myung Bae | 662aa6e | 2023-01-10 14:20:28 -0600 | [diff] [blame] | 204 | description: '''Enable output the extended logging level. |
| 205 | - disabled: disable bmcweb log traces. |
| 206 | - enabled: treated as 'debug' |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 207 | - For the other logging level option, see DEVELOPING.md.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 208 | ) |
| 209 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 210 | # BMCWEB_BASIC_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 211 | option( |
| 212 | 'basic-auth', |
| 213 | type: 'feature', |
| 214 | value: 'enabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 215 | description: 'Enable basic authentication', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 216 | ) |
| 217 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 218 | # BMCWEB_SESSION_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 219 | option( |
| 220 | 'session-auth', |
| 221 | type: 'feature', |
| 222 | value: 'enabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 223 | description: 'Enable session authentication', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 224 | ) |
| 225 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 226 | # BMCWEB_XTOKEN_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 227 | option( |
| 228 | 'xtoken-auth', |
| 229 | type: 'feature', |
| 230 | value: 'enabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 231 | description: 'Enable xtoken authentication', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 232 | ) |
| 233 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 234 | # BMCWEB_COOKIE_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 235 | option( |
| 236 | 'cookie-auth', |
| 237 | type: 'feature', |
| 238 | value: 'enabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 239 | description: 'Enable cookie authentication', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 240 | ) |
| 241 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 242 | # BMCWEB_MUTUAL_TLS_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 243 | option( |
| 244 | 'mutual-tls-auth', |
| 245 | type: 'feature', |
| 246 | value: 'enabled', |
| 247 | description: '''Enables authenticating users through TLS client |
| 248 | certificates. The insecure-disable-ssl must be disabled for |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 249 | this option to take effect.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 250 | ) |
| 251 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 252 | # BMCWEB_MUTUAL_TLS_COMMON_NAME_PARSING_DEFAULT |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 253 | option( |
| Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 254 | 'mutual-tls-common-name-parsing-default', |
| Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 255 | type: 'combo', |
| Malik Akbar Hashemi Rafsanjani | a494369 | 2025-05-27 13:23:44 -0700 | [diff] [blame] | 256 | choices: ['CommonName', 'Whole', 'UserPrincipalName'], |
| 257 | description: '''Default MTLS parse mode to get username from the |
| 258 | client's x509 certificate''', |
| Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 259 | ) |
| 260 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 261 | # BMCWEB_IBM_MANAGEMENT_CONSOLE |
| Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 262 | option( |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 263 | 'ibm-management-console', |
| 264 | type: 'feature', |
| 265 | value: 'disabled', |
| 266 | description: '''Enable the IBM management console specific functionality. |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 267 | Paths are under /ibm/v1/''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 268 | ) |
| 269 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 270 | # BMCWEB_GOOGLE_API |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 271 | option( |
| 272 | 'google-api', |
| 273 | type: 'feature', |
| 274 | value: 'disabled', |
| 275 | description: '''Enable the Google specific functionality. Paths are under |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 276 | /google/v1/''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 277 | ) |
| 278 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 279 | # BMCWEB_HTTP_BODY_LIMIT |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 280 | option( |
| 281 | 'http-body-limit', |
| 282 | type: 'integer', |
| 283 | min: 0, |
| 284 | max: 512, |
| 285 | value: 30, |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 286 | description: 'Specifies the http request body length limit', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 287 | ) |
| 288 | |
| Ed Tanous | b253906 | 2024-03-12 16:58:35 -0700 | [diff] [blame] | 289 | # BMCWEB_HTTP_ZSTD |
| 290 | option( |
| 291 | 'http-zstd', |
| 292 | type: 'feature', |
| 293 | value: 'enabled', |
| 294 | description: 'Allows compression/decompression using zstd', |
| 295 | ) |
| 296 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 297 | # BMCWEB_REDFISH_NEW_POWERSUBSYSTEM_THERMALSUBSYSTEM |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 298 | option( |
| 299 | 'redfish-new-powersubsystem-thermalsubsystem', |
| 300 | type: 'feature', |
| Gunnar Mills | 8615915 | 2024-02-06 14:54:39 -0600 | [diff] [blame] | 301 | value: 'enabled', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 302 | description: '''Enable/disable the new PowerSubsystem, ThermalSubsystem, |
| 303 | and all children schemas. This includes displaying all |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 304 | sensors in the SensorCollection.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 305 | ) |
| 306 | |
| Janet Adkins | f664fd8 | 2025-07-23 14:01:43 -0500 | [diff] [blame] | 307 | # BMCWEB_REDFISH_ALLOW_DEPRECATED_INDICATORLED |
| 308 | option( |
| 309 | 'redfish-allow-deprecated-indicatorled', |
| 310 | type: 'feature', |
| 311 | value: 'disabled', |
| 312 | description: '''Enable/disable the deprecated IndicatorLED property. The |
| 313 | default condition is disabled. The code to enable this |
| 314 | option will be removed by March 2026.''', |
| 315 | ) |
| 316 | |
| Janet Adkins | eb261e1 | 2025-09-15 13:25:45 -0500 | [diff] [blame] | 317 | # BMCWEB_REDFISH_USE_HARDCODED_SYSTEM_LOCATION_INDICATOR |
| 318 | option( |
| 319 | 'redfish-use-hardcoded-system-location-indicator', |
| 320 | type: 'feature', |
| 321 | value: 'enabled', |
| 322 | description: '''Enable/disable the use of hard-coded LED group |
| 323 | enclosure_identify_blink and enclosure_identify for getting |
| 324 | and setting the LocationIndicatorActive for the Systems |
| 325 | response. The default condition will be enabled until |
| 326 | October 15, 2025. The code to enable this option will be |
| 327 | removed by June 2026.''', |
| 328 | ) |
| 329 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 330 | # BMCWEB_REDFISH_ALLOW_DEPRECATED_POWER_THERMAL |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 331 | option( |
| 332 | 'redfish-allow-deprecated-power-thermal', |
| 333 | type: 'feature', |
| Gunnar Mills | db3bf6f | 2025-08-21 11:05:13 -0500 | [diff] [blame] | 334 | value: 'disabled', |
| 335 | description: '''Enable/disable the old Power / Thermal. This has been |
| 336 | replaced by the new PowerSubsystem, ThermalSubsystem, and |
| 337 | the redfish-new-powersubsystem-thermalsubsystem option. |
| 338 | This option will be removed June 2026.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 339 | ) |
| 340 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 341 | # BMCWEB_REDFISH_OEM_MANAGER_FAN_DATA |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 342 | option( |
| Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 343 | 'redfish-oem-manager-fan-data', |
| 344 | type: 'feature', |
| 345 | value: 'enabled', |
| 346 | description: '''Enables Redfish OEM fan data on the manager resource. |
| 347 | This includes PID and Stepwise controller data. See |
| Myung Bae | 1d19d87 | 2024-09-10 09:42:32 -0400 | [diff] [blame] | 348 | OpenBMCManager schema for more detail.''', |
| Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 349 | ) |
| 350 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 351 | # BMCWEB_REDFISH_UPDATESERVICE_USE_DBUS |
| Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 352 | option( |
| Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 353 | 'redfish-updateservice-use-dbus', |
| 354 | type: 'feature', |
| Jagpal Singh Gill | 64fa916 | 2024-11-12 16:16:47 -0800 | [diff] [blame] | 355 | value: 'enabled', |
| Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 356 | description: '''Enables xyz.openbmc_project.Software.Update D-Bus interface |
| 357 | to propagate UpdateService requests to the corresponding |
| 358 | updater daemons instead of moving files to /tmp/images dir. |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 359 | ''', |
| Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 360 | ) |
| 361 | |
| Ed Tanous | 6a37140 | 2024-12-03 14:01:25 -0800 | [diff] [blame] | 362 | # BMCWEB_REDFISH_ALLOW_SIMPLE_UPDATE |
| 363 | option( |
| 364 | 'redfish-allow-simple-update', |
| 365 | type: 'feature', |
| 366 | value: 'disabled', |
| 367 | description: '''Enables Redfish UpdateService SimpleUpdate Action. Note |
| 368 | that at this time this option is non-functional. Redfish |
| 369 | recommends using MultiPartUpdate.''', |
| 370 | ) |
| 371 | |
| 372 | |
| Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 373 | option( |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 374 | 'https_port', |
| 375 | type: 'integer', |
| Ed Tanous | 796ba93 | 2020-08-02 04:29:21 +0000 | [diff] [blame] | 376 | min: -1, |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 377 | max: 65535, |
| 378 | value: 443, |
| Ed Tanous | 796ba93 | 2020-08-02 04:29:21 +0000 | [diff] [blame] | 379 | description: '''HTTPS default port number. Set to -1 to disable and rely |
| 380 | only on additional_ports''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 381 | ) |
| Manojkiran Eda | af6298d | 2020-05-27 08:51:32 +0530 | [diff] [blame] | 382 | |
| Ed Tanous | 796ba93 | 2020-08-02 04:29:21 +0000 | [diff] [blame] | 383 | |
| 384 | # Additional ports |
| 385 | # This series of options below allows setting up non-trivial deployments of |
| 386 | # bmcweb, binding specific ports, authentication profiles, and device binds to |
| 387 | # multiple ports. |
| 388 | # Setting these options incorrectly can have severe security consequences and |
| 389 | # should be reserved for platform experts familiar with their particular |
| 390 | # platforms security requirements. |
| 391 | |
| 392 | option( |
| 393 | 'additional-ports', |
| 394 | type: 'array', |
| 395 | value: [], |
| 396 | description: '''Additional ports to listen to. Allows bmcweb to listen to |
| 397 | multiple ports at a given protocol''', |
| 398 | ) |
| 399 | |
| 400 | option( |
| 401 | 'additional-protocol', |
| 402 | type: 'array', |
| 403 | value: [], |
| 404 | description: '''Allows specifying a specific protocol type for a given |
| 405 | additional-ports index. Allows setting http, https, or both |
| 406 | to each socket index. If not provided for a given |
| 407 | additional-ports index, assumes https.''', |
| 408 | ) |
| 409 | |
| 410 | option( |
| 411 | 'additional-bind-to-device', |
| 412 | type: 'array', |
| 413 | value: [], |
| 414 | description: '''Allows specifying an SO_BINDTODEVICE or BindToDevice systemd |
| 415 | directive for each additional socket file. If not provided |
| 416 | for a given additional-ports index, assumes bind to all |
| 417 | devices''', |
| 418 | ) |
| 419 | |
| 420 | option( |
| 421 | 'additional-auth', |
| 422 | type: 'array', |
| 423 | value: [], |
| 424 | description: '''Allows specifying an authentication profile for each socket |
| 425 | created with additional-ports. Allows auth or noauth, and |
| 426 | defaults to auth if not provided. If noauth is provided, |
| 427 | authentication will not be performed for a given socket/port |
| 428 | index.''', |
| 429 | ) |
| 430 | # end additional ports |
| 431 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 432 | # BMCWEB_DNS_RESOLVER |
| Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 433 | option( |
| Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 434 | 'dns-resolver', |
| 435 | type: 'combo', |
| 436 | choices: ['systemd-dbus', 'asio'], |
| 437 | value: 'systemd-dbus', |
| 438 | description: '''Sets which DNS resolver backend should be used. |
| 439 | systemd-dbus uses the Systemd ResolveHostname on dbus, but requires dbus |
| 440 | support. asio relies on boost::asio::tcp::resolver, but cannot resolve |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 441 | names when boost threading is disabled.''', |
| Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 442 | ) |
| 443 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 444 | # BMCWEB_REDFISH_AGGREGATION |
| Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 445 | option( |
| Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 446 | 'redfish-aggregation', |
| 447 | type: 'feature', |
| 448 | value: 'disabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 449 | description: 'Allows this BMC to aggregate resources from satellite BMCs', |
| Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 450 | ) |
| 451 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 452 | # BMCWEB_HYPERVISOR_COMPUTER_SYSTEM |
| Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 453 | option( |
| Gunnar Mills | 6889620 | 2024-08-21 11:34:20 -0500 | [diff] [blame] | 454 | 'hypervisor-computer-system', |
| 455 | type: 'feature', |
| 456 | value: 'disabled', |
| 457 | description: '''This puts a hypervisor computer system resource at |
| 458 | /redfish/v1/Systems/hypervisor. This system resource has children |
| 459 | resources such as EthernetInterfaces and ComputerSystem.Reset.''', |
| 460 | ) |
| 461 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 462 | # BMCWEB_EXPERIMENTAL_REDFISH_MULTI_COMPUTER_SYSTEM |
| Gunnar Mills | 6889620 | 2024-08-21 11:34:20 -0500 | [diff] [blame] | 463 | option( |
| Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 464 | 'experimental-redfish-multi-computer-system', |
| 465 | type: 'feature', |
| 466 | value: 'disabled', |
| 467 | description: '''This is a temporary option flag for staging the |
| 468 | ComputerSystemCollection transition to multi-host. It, as well as the code |
| Oliver Brewka | 0682746 | 2025-07-13 18:29:31 +0200 | [diff] [blame] | 469 | still beneath it will be removed on 1/1/2026. Do not enable in a |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 470 | production environment, or where API stability is required.''', |
| Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 471 | ) |
| 472 | |
| Ed Tanous | b360d5b | 2024-07-02 11:49:19 -0700 | [diff] [blame] | 473 | # BMCWEB_EXPERIMENTAL_BMCWEB_USER |
| 474 | option( |
| 475 | 'experimental-bmcweb-user', |
| 476 | type: 'feature', |
| 477 | value: 'disabled', |
| 478 | description: '''Enable to run bmcweb as the bmcweb user. This is |
| 479 | experimental. Expect many things to be broken if you enable this |
| 480 | option, and this should not be used for production usage. This |
| 481 | option will be removed Q1 2026.''', |
| 482 | ) |
| 483 | |
| Ed Tanous | 39fe3af | 2025-02-17 11:34:12 -0800 | [diff] [blame] | 484 | # BMCWEB_HTTP2 |
| Ed Tanous | fca2cbe | 2021-01-28 14:49:59 -0800 | [diff] [blame] | 485 | option( |
| Ed Tanous | 39fe3af | 2025-02-17 11:34:12 -0800 | [diff] [blame] | 486 | 'http2', |
| Ed Tanous | fca2cbe | 2021-01-28 14:49:59 -0800 | [diff] [blame] | 487 | type: 'feature', |
| Ed Tanous | 39fe3af | 2025-02-17 11:34:12 -0800 | [diff] [blame] | 488 | value: 'enabled', |
| 489 | description: 'Enable HTTP/2 protocol support using nghttp2.', |
| Ed Tanous | fca2cbe | 2021-01-28 14:49:59 -0800 | [diff] [blame] | 490 | ) |
| 491 | |
| rohitpai | cf9085a | 2025-02-24 12:33:59 +0530 | [diff] [blame] | 492 | # BMCWEB_WATCHDOG_TIMEOUT |
| 493 | option( |
| 494 | 'watchdog-timeout-seconds', |
| 495 | type: 'integer', |
| 496 | min: 0, |
| 497 | max: 600, |
| 498 | value: 120, |
| 499 | description: '''Specifies the systemd watchdog timeout interval in seconds. |
| 500 | Set to 0 to disable the watchdog.''', |
| 501 | ) |
| 502 | |
| Manojkiran Eda | af6298d | 2020-05-27 08:51:32 +0530 | [diff] [blame] | 503 | # Insecure options. Every option that starts with a `insecure` flag should |
| 504 | # not be enabled by default for any platform, unless the author fully comprehends |
| 505 | # the implications of doing so.In general, enabling these options will cause security |
| 506 | # problems of varying degrees |
| 507 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 508 | # BMCWEB_INSECURE_DISABLE_CSRF |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 509 | option( |
| 510 | 'insecure-disable-csrf', |
| 511 | type: 'feature', |
| 512 | value: 'disabled', |
| 513 | description: '''Disable CSRF prevention checks.Should be set to false for |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 514 | production systems.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 515 | ) |
| 516 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 517 | # BMCWEB_INSECURE_DISABLE_SSL |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 518 | option( |
| 519 | 'insecure-disable-ssl', |
| 520 | type: 'feature', |
| 521 | value: 'disabled', |
| 522 | description: '''Disable SSL ports. Should be set to false for production |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 523 | systems.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 524 | ) |
| 525 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 526 | # BMCWEB_INSECURE_DISABLE_AUTH |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 527 | option( |
| 528 | 'insecure-disable-auth', |
| 529 | type: 'feature', |
| 530 | value: 'disabled', |
| Nan Zhou | a43ea82 | 2022-05-27 00:42:44 +0000 | [diff] [blame] | 531 | description: '''Disable authentication and authoriztion on all ports. |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 532 | Should be set to false for production systems.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 533 | ) |
| 534 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 535 | # BMCWEB_INSECURE_IGNORE_CONTENT_TYPE |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 536 | option( |
| Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 537 | 'insecure-ignore-content-type', |
| 538 | type: 'feature', |
| Ed Tanous | db39802 | 2023-06-07 16:38:08 -0700 | [diff] [blame] | 539 | value: 'disabled', |
| Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 540 | description: '''Allows parsing PUT/POST/PATCH content as JSON regardless |
| 541 | of the presence of the content-type header. Enabling this |
| 542 | conflicts with the input parsing guidelines, but may be |
| 543 | required to support old clients that may not set the |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 544 | Content-Type header on payloads.''', |
| Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 545 | ) |
| 546 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 547 | # BMCWEB_INSECURE_PUSH_STYLE_NOTIFICATION |
| Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 548 | option( |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 549 | 'insecure-push-style-notification', |
| 550 | type: 'feature', |
| 551 | value: 'disabled', |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 552 | description: 'Enable HTTP push style eventing feature', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 553 | ) |
| 554 | |
| Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 555 | # BMCWEB_INSECURE_ENABLE_REDFISH_QUERY |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 556 | option( |
| 557 | 'insecure-enable-redfish-query', |
| 558 | type: 'feature', |
| 559 | value: 'disabled', |
| 560 | description: '''Enables Redfish expand query parameter. This feature is |
| 561 | experimental, and has not been tested against the full |
| 562 | limits of user-facing behavior. It is not recommended to |
| 563 | enable on production systems at this time. Other query |
| Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 564 | parameters such as only are not controlled by this option.''', |
| Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 565 | ) |