Admin unable to edit queries

Hi, this morning I logged on and I am no longer able to edit Metabase SQL queries despite having admin access & permissions to all of our groups. I can see the queries but when I make a change to the SQL and try to run I get " Sorry, you don’t have permission to see that.". It's happening across two databases. I can still run selects on the same tables but not edit.

Diagnostic info:

{
  "browser-info": {
    "language": "en-GB",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.15+10",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.15",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.15+10",
    "os.name": "Linux",
    "os.version": "4.15.0-180-generic",
    "user.language": "en",
    "user.timezone": "GMT"
  },
  "metabase-info": {
    "databases": [
      "sqlserver",
      "snowflake"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "11.16"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.3.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2022-06-13",
      "tag": "v0.43.3",
      "branch": "release-x.43.x",
      "hash": "c9c7ef0"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

Hi @leomac
Caused by a reverse-proxy (WAF etc) being too aggressive:
https://www.metabase.com/docs/latest/troubleshooting-guide/proxies

@flamber our Metabase instance is not behind any WAF.. are there any other potential issues?

@leomac Post the URL to your instance. I can guarantee that you are using a WAF, but probably just don't know it.

@leomac You're using CloudFlare, so you have probably some protection settings enabled.
Your Site URL is also not configured correctly in Admin > Settings > General.
And latest release is 0.44.6: https://github.com/metabase/metabase/releases/latest

1 Like

@flamber can you elaborate on what the issue is with the site URL?

@leomac It's http instead of https.