Interface to access temperature sensors?

We recently had a bug logged against our snap asking if it could read temperature data from the system. The denial looks like this:

Jan  5 11:35:31 ubuntunextcloud kernel: [1211761.978032] audit: type=1400 audit(1672918531.015:882155): apparmor="DENIED" operation="open" profile="snap.nextcloud.php-fpm" name="/sys/devices/virtual/thermal/thermal_zone0/type" pid=1855426 comm="php-fpm" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

A quick grep leads me to believe that snapd doesn’t have an interface that covers this, but I thought I’d ask the experts. Anyone know?

i’d expect this to be in system-observe or hardware-observe normally … if it is not covered in either of them it smells like a bug …

The issue persists on my Nextcloud 27.0.2snap1.

Can it be resolved?

Regards

Other confined snaps such as btop and htop read and display temperature data correctly. A quick look at the btop yaml (https://github.com/aristocratos/btop/blob/main/snap/snapcraft.yaml) suggests that this indeed resides in system-observe or hardware-observe. Not sure if libsensors is also needed for certain types of sensors.