Getting Error 403 when trying to modify any gateway settings

I’m getting a 403 error on my gateway, even though when I test the login: I’m able to retrieve “Administrator”.

I don’t see anything in the logs either.

Hi,

Is this for the API or the gateway UI?

Could you please provide a more detailed breakdown of what specific action you are taking and in what context? If making use of the API, please include the specific route/endpoint you are requesting and the (JSON) response from your request. If using the UI, could you please include a screenshot of the page and error Toast?

The 403 suggests you lack the required permissions. You should also include some insight into the configuration applied for Write permissions, and you may want to check against the /data/app/permissions endpoint to see what the Gateway believes your permissions to truly be.

Is this for the API or the gateway UI?

This is for the Gateway UI. I tried to do a set of things:

  1. Renaming gateway
  2. Saving after disabling direct draw

How do I do this? Sorry it’s my first Linux setup, and it’s been a lot of learning.

  1. Right-click your browser page, and select “Inspect”.
  2. In the new panel, locate the “Network” tab.
  3. Refresh your page.
  4. Look for a listing in the Network tab for permissions.
  5. Click the permissions listing.
  6. In the new panel for the listing, locate the Response tab.
  7. Copy the content there and paste it here.

Thanks for the details. Here it is:

{"access":true,"read":true,"write":true}

I tried to change a setting and hit “Save” while on the response tab:

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>MyCompany</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

I changed the “center” tag to anonymize my workplace.

What version are you using? Did you or anyone else modify the System Identity Provider for this Gateway since you started your session?

I ask because the back-end is reporting that you have Write permissions, but that data can become desynchronized if the Gateway IdP is modified. If you log out of the Gateway, then log back in and check that same permissions endpoint, what do you see?

Edit:

I suppose your permission data may also become stale if you or anyone else updated the settings for write permissions while you were signed in. We introduced a “speed bump” of sorts in version 8.3.3 to prevent scenarios like this.

I’m using 8.3.
Identity provide continues to be default. Also no one else is aware of this server, or has access to it.

This VM is going through a company load balancer. Do you think app/platform/system/gateway/settings

…is somehow blocked by the load balancer?

I’ve done this several times now, same result.

But what version of 8.3?

While looking at the Network tab, examine the Headers tab for one of the 403 responses you’ve received, or trigger a new one. The content you posted in a previous response here is unlike anything the Gateway would be returning to you, and I’d be interested to see the Request URL value for the response. As was pointed out to me by one of our other QA members, that entire HTML response is not something we are sending.

8.3.3 (b2026012009)

Request URL
https://ignition.CompanyName.com/data/api/v1/resources/ignition/system-properties

You should reach out to Support, as I’m out of ideas as to why you might be hitting this. I can’t rule out the load balancer, and that HTML response is very curious. Unfortunately, without being able to dive into your Gateway, I can’t see what might be causing this.

Yeah, kinda seems like he's hitting a load balancer or reverse proxy or something.

Yep... looks like nginx...

That’s great to see!
I’ll talk to the folks over in that team to see what needs to be done.

It was indeed a WebApplicationFirewall rule, preventing PUT.

Working with the team to resolve it.