[SOLVED] Broken API after upgrade to 25.7

Started by marcog, July 24, 2025, 12:25:48 AM

Previous topic - Next topic
July 24, 2025, 12:25:48 AM Last Edit: July 24, 2025, 01:51:19 AM by marcog
Hi,
I have a Python script that queries the ARP table of opnsense via this endpoint:
/api/diagnostics/interface/getArpI've  started receiving 403 after I upgraded to 25.7. Nothing has changed in the script.
The OPNsense backend logs say:
uri /api/diagnostics/interface/getArp not accessible for user srvcPython using api key <redacted>The user associated with the API key has
Diagnostics: ARP Tablepermissions. What might have caused this?
Thanks

Obviously because of changing to snake_case in the API: https://forum.opnsense.org/index.php?topic=48072.0

Quoteui: use snake_case for all API URLs and adjust ACLs accordingly

https://docs.opnsense.org/development/api/core/diagnostics.html lists get_arp instead of getArp.

Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, ZTE F6005

1100 down / 450 up, Bufferbloat A+

ah indeed you are right, thanks for pointing me to the right post!

Sounds like you are using a specific user with a restricted ACL which is why this happens as the ACLs were adjusted too.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

Quote from: franco on July 24, 2025, 07:35:10 AMSounds like you are using a specific user with a restricted ACL which is why this happens as the ACLs were adjusted too.


Cheers,
Franco

Yep, that was my case, I've changed the endpoint to use snake_case and everything is working again. Thanks for your awesome work franco!

Thank you for the report. This will help others in the future too.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT