openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
160 stars 131 forks source link

$metadata returns 401 if no authentication is provided #277

Closed edtanous closed 4 months ago

edtanous commented 4 months ago

Is this the right place to submit this?

Bug Description

curl -vvvv  -k  https://192.168.7.2/redfish/v1/\$metadata

is returning 401, which is causing redfish service validator to fail. This URI is called out in the Redfish spec as being allowed without authentication.

Version

This is a regression caused by 090ab8e1042e14f7e5e02572ae2a2102677f1f00

root@s7106:~# cat /etc/os-release
ID=openbmc-phosphor
NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)"
VERSION="2.16.0-dev"
VERSION_ID=2.16.0-dev-1068-g12927b25ba-dirty
VERSION_CODENAME="scarthgap"
PRETTY_NAME="Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 2.16.0-dev"
CPE_NAME="cpe:/o:openembedded:openbmc-phosphor:2.16.0-dev-1068-g12927b25ba-dirty"
BUILD_ID="20240528182430"
OPENBMC_TARGET_MACHINE="s7106"
EXTENDED_VERSION="2.16.0-dev-1068-g12927b25ba-dirty"