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', |
| 102 | value: 'disabled', |
| 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 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 118 | # BMCWEB_REDFISH_HOST_LOGGER |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 119 | option( |
| 120 | 'redfish-host-logger', |
| 121 | type: 'feature', |
| 122 | value: 'enabled', |
| 123 | description: '''Enable host log service transactions based on |
| 124 | phosphor-hostlogger through Redfish. Paths are under |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 125 | /redfish/v1/Systems/system/LogServices/HostLogger''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 126 | ) |
| 127 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 128 | # BMCWEB_REDFISH_PROVISIONING_FEATURE |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 129 | option( |
| 130 | 'redfish-provisioning-feature', |
| 131 | type: 'feature', |
| 132 | value: 'disabled', |
| 133 | description: '''Enable provisioning feature support in redfish. Paths are |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 134 | under /redfish/v1/Systems/system/''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 135 | ) |
| 136 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 137 | # BMCWEB_REDFISH_MANAGER_URI_NAME |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 138 | option( |
Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 139 | 'redfish-manager-uri-name', |
| 140 | type: 'string', |
| 141 | value: 'bmc', |
| 142 | description: '''The static Redfish Manager ID representing the BMC |
| 143 | instance. This option will appear in the Redfish tree at |
| 144 | /redfish/v1/Managers/<redfish-manager-uri-name>. |
| 145 | Defaults to \'bmc\' which resolves to |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 146 | /redfish/v1/Managers/bmc''', |
Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 147 | ) |
| 148 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 149 | # BMCWEB_REDFISH_SYSTEM_URI_NAME |
Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 150 | option( |
| 151 | 'redfish-system-uri-name', |
| 152 | type: 'string', |
| 153 | value: 'system', |
| 154 | description: '''The static Redfish System ID representing the host |
| 155 | instance. This option will appear in the Redfish tree at |
| 156 | /redfish/v1/Systems/<redfish-system-uri-name>. |
| 157 | Defaults to \'system\' which resolves to |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 158 | /redfish/v1/Systems/system''', |
Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 159 | ) |
| 160 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 161 | # BMCWEB_LOGGING_LEVEL |
Ed Tanous | 253f11b | 2024-05-16 09:38:31 -0700 | [diff] [blame] | 162 | option( |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 163 | 'bmcweb-logging', |
Myung Bae | 662aa6e | 2023-01-10 14:20:28 -0600 | [diff] [blame] | 164 | type: 'combo', |
Ed Tanous | 92e26be | 2024-08-21 13:39:14 -0700 | [diff] [blame] | 165 | choices: [ |
| 166 | 'disabled', |
| 167 | 'enabled', |
| 168 | 'debug', |
| 169 | 'info', |
| 170 | 'warning', |
| 171 | 'error', |
| 172 | 'critical', |
| 173 | ], |
Ed Tanous | 4d1db04 | 2024-02-16 13:08:34 -0800 | [diff] [blame] | 174 | value: 'error', |
Myung Bae | 662aa6e | 2023-01-10 14:20:28 -0600 | [diff] [blame] | 175 | description: '''Enable output the extended logging level. |
| 176 | - disabled: disable bmcweb log traces. |
| 177 | - enabled: treated as 'debug' |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 178 | - For the other logging level option, see DEVELOPING.md.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 179 | ) |
| 180 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 181 | # BMCWEB_BASIC_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 182 | option( |
| 183 | 'basic-auth', |
| 184 | type: 'feature', |
| 185 | value: 'enabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 186 | description: 'Enable basic authentication', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 187 | ) |
| 188 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 189 | # BMCWEB_SESSION_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 190 | option( |
| 191 | 'session-auth', |
| 192 | type: 'feature', |
| 193 | value: 'enabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 194 | description: 'Enable session authentication', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 195 | ) |
| 196 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 197 | # BMCWEB_XTOKEN_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 198 | option( |
| 199 | 'xtoken-auth', |
| 200 | type: 'feature', |
| 201 | value: 'enabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 202 | description: 'Enable xtoken authentication', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 203 | ) |
| 204 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 205 | # BMCWEB_COOKIE_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 206 | option( |
| 207 | 'cookie-auth', |
| 208 | type: 'feature', |
| 209 | value: 'enabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 210 | description: 'Enable cookie authentication', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 211 | ) |
| 212 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 213 | # BMCWEB_MUTUAL_TLS_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 214 | option( |
| 215 | 'mutual-tls-auth', |
| 216 | type: 'feature', |
| 217 | value: 'enabled', |
| 218 | description: '''Enables authenticating users through TLS client |
| 219 | certificates. The insecure-disable-ssl must be disabled for |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 220 | this option to take effect.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 221 | ) |
| 222 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 223 | # BMCWEB_MUTUAL_TLS_COMMON_NAME_PARSING_DEFAULT |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 224 | option( |
Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 225 | 'mutual-tls-common-name-parsing-default', |
Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 226 | type: 'combo', |
Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 227 | choices: ['CommonName', 'Whole', 'UserPrincipalName', 'Meta'], |
| 228 | description: ''' |
| 229 | Parses the Subject CN in the format used by |
Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 230 | Meta Inc (see mutual_tls_meta.cpp for details) |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 231 | ''', |
Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 232 | ) |
| 233 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 234 | # BMCWEB_META_TLS_COMMON_NAME_PARSING |
Marco Kawajiri | 0e373b5 | 2023-10-31 13:36:58 -0700 | [diff] [blame] | 235 | option( |
Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 236 | 'meta-tls-common-name-parsing', |
| 237 | type: 'feature', |
| 238 | description: ''' |
| 239 | Allows parsing the Subject CN TLS certificate in the format used by |
| 240 | Meta Inc (see mutual_tls_meta.cpp for details) |
| 241 | ''', |
| 242 | ) |
| 243 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 244 | # BMCWEB_IBM_MANAGEMENT_CONSOLE |
Ed Tanous | 3ce3688 | 2024-06-09 10:58:16 -0700 | [diff] [blame] | 245 | option( |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 246 | 'ibm-management-console', |
| 247 | type: 'feature', |
| 248 | value: 'disabled', |
| 249 | description: '''Enable the IBM management console specific functionality. |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 250 | Paths are under /ibm/v1/''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 251 | ) |
| 252 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 253 | # BMCWEB_GOOGLE_API |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 254 | option( |
| 255 | 'google-api', |
| 256 | type: 'feature', |
| 257 | value: 'disabled', |
| 258 | description: '''Enable the Google specific functionality. Paths are under |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 259 | /google/v1/''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 260 | ) |
| 261 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 262 | # BMCWEB_HTTP_BODY_LIMIT |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 263 | option( |
| 264 | 'http-body-limit', |
| 265 | type: 'integer', |
| 266 | min: 0, |
| 267 | max: 512, |
| 268 | value: 30, |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 269 | description: 'Specifies the http request body length limit', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 270 | ) |
| 271 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 272 | # BMCWEB_REDFISH_NEW_POWERSUBSYSTEM_THERMALSUBSYSTEM |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 273 | option( |
| 274 | 'redfish-new-powersubsystem-thermalsubsystem', |
| 275 | type: 'feature', |
Gunnar Mills | 8615915 | 2024-02-06 14:54:39 -0600 | [diff] [blame] | 276 | value: 'enabled', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 277 | description: '''Enable/disable the new PowerSubsystem, ThermalSubsystem, |
| 278 | and all children schemas. This includes displaying all |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 279 | sensors in the SensorCollection.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 280 | ) |
| 281 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 282 | # BMCWEB_REDFISH_ALLOW_DEPRECATED_POWER_THERMAL |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 283 | option( |
| 284 | 'redfish-allow-deprecated-power-thermal', |
| 285 | type: 'feature', |
| 286 | value: 'enabled', |
| 287 | description: '''Enable/disable the old Power / Thermal. The default |
Gunnar Mills | 8615915 | 2024-02-06 14:54:39 -0600 | [diff] [blame] | 288 | condition is allowing the old Power / Thermal. This |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 289 | will be disabled by default June 2024. ''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 290 | ) |
| 291 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 292 | # BMCWEB_REDFISH_OEM_MANAGER_FAN_DATA |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 293 | option( |
Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 294 | 'redfish-oem-manager-fan-data', |
| 295 | type: 'feature', |
| 296 | value: 'enabled', |
| 297 | description: '''Enables Redfish OEM fan data on the manager resource. |
| 298 | This includes PID and Stepwise controller data. See |
Myung Bae | 1d19d87 | 2024-09-10 09:42:32 -0400 | [diff] [blame] | 299 | OpenBMCManager schema for more detail.''', |
Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 300 | ) |
| 301 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 302 | # BMCWEB_REDFISH_UPDATESERVICE_USE_DBUS |
Gunnar Mills | 54dce7f | 2022-08-05 17:01:32 +0000 | [diff] [blame] | 303 | option( |
Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 304 | 'redfish-updateservice-use-dbus', |
| 305 | type: 'feature', |
| 306 | value: 'disabled', |
| 307 | description: '''Enables xyz.openbmc_project.Software.Update D-Bus interface |
| 308 | to propagate UpdateService requests to the corresponding |
| 309 | updater daemons instead of moving files to /tmp/images dir. |
| 310 | This option is temporary, should not be enabled on any |
| 311 | production systems. The code will be moved to the normal |
| 312 | code update flow and the option will be removed at the end |
| 313 | of Q3 2024. |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 314 | ''', |
Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 315 | ) |
| 316 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 317 | # BMCWEB_HTTPS_PORT |
Jagpal Singh Gill | 5785566 | 2024-04-17 10:44:27 -0700 | [diff] [blame] | 318 | option( |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 319 | 'https_port', |
| 320 | type: 'integer', |
| 321 | min: 1, |
| 322 | max: 65535, |
| 323 | value: 443, |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 324 | description: 'HTTPS Port number.', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 325 | ) |
Manojkiran Eda | af6298d | 2020-05-27 08:51:32 +0530 | [diff] [blame] | 326 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 327 | # BMCWEB_DNS_RESOLVER |
Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 328 | option( |
Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 329 | 'dns-resolver', |
| 330 | type: 'combo', |
| 331 | choices: ['systemd-dbus', 'asio'], |
| 332 | value: 'systemd-dbus', |
| 333 | description: '''Sets which DNS resolver backend should be used. |
| 334 | systemd-dbus uses the Systemd ResolveHostname on dbus, but requires dbus |
| 335 | support. asio relies on boost::asio::tcp::resolver, but cannot resolve |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 336 | names when boost threading is disabled.''', |
Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 337 | ) |
| 338 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 339 | # BMCWEB_REDFISH_AGGREGATION |
Ed Tanous | f8ca6d7 | 2022-06-28 12:12:03 -0700 | [diff] [blame] | 340 | option( |
Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 341 | 'redfish-aggregation', |
| 342 | type: 'feature', |
| 343 | value: 'disabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 344 | description: 'Allows this BMC to aggregate resources from satellite BMCs', |
Carson Labrado | 7fb3356 | 2022-04-18 23:26:56 +0000 | [diff] [blame] | 345 | ) |
| 346 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 347 | # BMCWEB_HYPERVISOR_COMPUTER_SYSTEM |
Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 348 | option( |
Gunnar Mills | 6889620 | 2024-08-21 11:34:20 -0500 | [diff] [blame] | 349 | 'hypervisor-computer-system', |
| 350 | type: 'feature', |
| 351 | value: 'disabled', |
| 352 | description: '''This puts a hypervisor computer system resource at |
| 353 | /redfish/v1/Systems/hypervisor. This system resource has children |
| 354 | resources such as EthernetInterfaces and ComputerSystem.Reset.''', |
| 355 | ) |
| 356 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 357 | # BMCWEB_EXPERIMENTAL_REDFISH_MULTI_COMPUTER_SYSTEM |
Gunnar Mills | 6889620 | 2024-08-21 11:34:20 -0500 | [diff] [blame] | 358 | option( |
Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 359 | 'experimental-redfish-multi-computer-system', |
| 360 | type: 'feature', |
| 361 | value: 'disabled', |
| 362 | description: '''This is a temporary option flag for staging the |
| 363 | ComputerSystemCollection transition to multi-host. It, as well as the code |
Gunnar Mills | 1f1fb4f | 2024-10-02 15:02:19 -0500 | [diff] [blame] | 364 | still beneath it will be removed on 3/1/2025. Do not enable in a |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 365 | production environment, or where API stability is required.''', |
Ed Tanous | 7f3e84a | 2022-12-28 16:22:54 -0800 | [diff] [blame] | 366 | ) |
| 367 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 368 | # BMCWEB_EXPERIMENTAL_HTTP2 |
Ed Tanous | fca2cbe | 2021-01-28 14:49:59 -0800 | [diff] [blame] | 369 | option( |
| 370 | 'experimental-http2', |
| 371 | type: 'feature', |
| 372 | value: 'disabled', |
| 373 | description: '''Enable HTTP/2 protocol support using nghttp2. Do not rely |
| 374 | on this option for any production systems. It may have |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 375 | behavior changes or be removed at any time.''', |
Ed Tanous | fca2cbe | 2021-01-28 14:49:59 -0800 | [diff] [blame] | 376 | ) |
| 377 | |
Manojkiran Eda | af6298d | 2020-05-27 08:51:32 +0530 | [diff] [blame] | 378 | # Insecure options. Every option that starts with a `insecure` flag should |
| 379 | # not be enabled by default for any platform, unless the author fully comprehends |
| 380 | # the implications of doing so.In general, enabling these options will cause security |
| 381 | # problems of varying degrees |
| 382 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 383 | # BMCWEB_INSECURE_DISABLE_CSRF |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 384 | option( |
| 385 | 'insecure-disable-csrf', |
| 386 | type: 'feature', |
| 387 | value: 'disabled', |
| 388 | description: '''Disable CSRF prevention checks.Should be set to false for |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 389 | production systems.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 390 | ) |
| 391 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 392 | # BMCWEB_INSECURE_DISABLE_SSL |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 393 | option( |
| 394 | 'insecure-disable-ssl', |
| 395 | type: 'feature', |
| 396 | value: 'disabled', |
| 397 | description: '''Disable SSL ports. Should be set to false for production |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 398 | systems.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 399 | ) |
| 400 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 401 | # BMCWEB_INSECURE_DISABLE_AUTH |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 402 | option( |
| 403 | 'insecure-disable-auth', |
| 404 | type: 'feature', |
| 405 | value: 'disabled', |
Nan Zhou | a43ea82 | 2022-05-27 00:42:44 +0000 | [diff] [blame] | 406 | description: '''Disable authentication and authoriztion on all ports. |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 407 | Should be set to false for production systems.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 408 | ) |
| 409 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 410 | # BMCWEB_INSECURE_IGNORE_CONTENT_TYPE |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 411 | option( |
Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 412 | 'insecure-ignore-content-type', |
| 413 | type: 'feature', |
Ed Tanous | db39802 | 2023-06-07 16:38:08 -0700 | [diff] [blame] | 414 | value: 'disabled', |
Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 415 | description: '''Allows parsing PUT/POST/PATCH content as JSON regardless |
| 416 | of the presence of the content-type header. Enabling this |
| 417 | conflicts with the input parsing guidelines, but may be |
| 418 | required to support old clients that may not set the |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 419 | Content-Type header on payloads.''', |
Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 420 | ) |
| 421 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 422 | # BMCWEB_INSECURE_PUSH_STYLE_NOTIFICATION |
Ed Tanous | 1aa0c2b | 2022-02-08 12:24:30 +0100 | [diff] [blame] | 423 | option( |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 424 | 'insecure-push-style-notification', |
| 425 | type: 'feature', |
| 426 | value: 'disabled', |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 427 | description: 'Enable HTTP push style eventing feature', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 428 | ) |
| 429 | |
Ed Tanous | c5bcf35 | 2024-09-25 16:41:10 -0700 | [diff] [blame] | 430 | # BMCWEB_INSECURE_ENABLE_REDFISH_QUERY |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 431 | option( |
| 432 | 'insecure-enable-redfish-query', |
| 433 | type: 'feature', |
| 434 | value: 'disabled', |
| 435 | description: '''Enables Redfish expand query parameter. This feature is |
| 436 | experimental, and has not been tested against the full |
| 437 | limits of user-facing behavior. It is not recommended to |
| 438 | enable on production systems at this time. Other query |
Ed Tanous | 50b3702 | 2024-06-25 13:00:04 -0700 | [diff] [blame] | 439 | parameters such as only are not controlled by this option.''', |
Ed Tanous | 0cd5f78 | 2022-04-26 16:09:09 -0700 | [diff] [blame] | 440 | ) |