Hi,
I have a Python script that queries the ARP table of opnsense via this endpoint:
/api/diagnostics/interface/getArp
I'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 Table
permissions. 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.
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
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