Record access forbidden

Feature(s) impacted

Can’t access any collection/records on the production environment

Observed behavior

When I navigate to the production environment and try to access any collection, I gent an error: Record access forbidden
You don’t have access to the details of this record.

Expected behavior

I should be able to see the list of records form the table

Failure Logs

{“errors”:[{“name”:“ForbiddenError”,“detail”:“Forbidden”,“status”:403}]}

Context

I have only one user on this project. The user has Admin access and the user role has access to all collections.

  • Project name: GoJoePlayground
  • Team name: Operations
  • Environment name: Production
  • Database type: MySQL
  • Recent changes made on your end if any: …

And, if you are self-hosting your agent:

  • Agent technology: Node.js
  • Agent (forest package) name & version (from your .lock file):
{
  "liana": "forest-nodejs-agent",
  "liana_version": "1.64.5",
  "liana_features": null,
  "stack": {"engine": "nodejs", "engine_version": "22.15.0"}
}  
"@forestadmin/agent": "1.64.5",
"@forestadmin/datasource-sequelize": "1.13.0",

Hi @Constantin_Predescu,

Do you receive this error from our server or from yours ?

Did you try restarting your server ?

Hi @vince , this is the error I’m receiving

{“errors”:[{“name”:“ForbiddenError”,“detail”:“Forbidden”,“status”:403}]}

I’ve deployed the app few times on the server since start happening.

Works well on dev mode.

It start happening a few days back when I’ve added few more entities on the database. First, I could’t access the new entities event the role have access to all of them.

I’ve pressed the button “Sync Database Schema” (this was a mistake from me because I’m using my own backend) and all tables disappear form the UI.
After a redeploy, the tables are back but if I try to access them I got this error:

Record access forbidden
You don’t have access to the details of this record.

I have only one user o this project with full access to all collection on production.

Thanks.

Okey weird. I see no issue on our side.
I tried to refresh your project to make sure your permissions are correct.
Could you restart your server and then retry ?

Hi @vince , still no luck.

I did a few more tests, trying to downgrade the agent.

Main agent config looks like this now:

  const agent = createAgent({

    authSecret: configService.get<string>('forest.authSecret'),
    envSecret: configService.get<string>('forest.envSecret'),
    isProduction: configService.get<string>('stage') === 'production',
    typingsPath: './typings.ts',
    typingsMaxDepth: 5,
    prefix: 'forest',
  }).addDataSource(
        createSequelizeDataSource(sequelizeInstance, {
        liveQueryConnections: 'main',
      }),
  );

The interesting part is that I’ve created a chart using one of the tables and it works.



Do you have any logs on your server ?


2025-08-19 13:20:28.719 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [NestFactory] Starting Nest application...
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] AwsS3Module dependencies initialized +110ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] SqsModule dependencies initialized +0ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] DatabaseModule dependencies initialized +0ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] SequelizeModule dependencies initialized +0ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] ConfigHostModule dependencies initialized +0ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] AppModule dependencies initialized +0ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] ConfigModule dependencies initialized +1ms
2025-08-19 13:20:28.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:28 PM LOG [InstanceLoader] AwsSecretsManagerModule dependencies initialized +0ms
2025-08-19 13:20:30.829 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin Executing (default): SELECT 1+1 AS result
2025-08-19 13:20:30.833 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:30 PM LOG [InstanceLoader] SequelizeCoreModule dependencies initialized +2002ms
2025-08-19 13:20:30.833 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:30 PM LOG [InstanceLoader] SequelizeModule dependencies initialized +0ms
2025-08-19 13:20:30.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:30 PM LOG [InstanceLoader] SequelizeModule dependencies initialized +0ms
2025-08-19 13:20:30.834 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:30 PM LOG [InstanceLoader] ForestModule dependencies initialized +1ms
2025-08-19 13:20:30.915 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: Successfully mounted on NestJS
2025-08-19 13:20:31.746 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: Schema was not updated since last run (hash: 485007ed39c04a08b09b3038a52c28ac855ca613)
2025-08-19 13:20:32.113 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:32 PM LOG [RoutesResolver] AppController {/}: +1279ms
2025-08-19 13:20:32.118 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:32 PM LOG [RouterExplorer] Mapped {/, GET} route +5ms
2025-08-19 13:20:32.120 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:32 PM LOG [RouterExplorer] Mapped {/status, GET} route +2ms
2025-08-19 13:20:32.214 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin [Nest] 1 - 08/19/2025, 12:20:32 PM LOG [NestApplication] Nest application successfully started +94ms
2025-08-19 13:33:45.523 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 3ms
2025-08-19 13:33:45.616 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:45.618 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:46.149 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 320ms
2025-08-19 13:33:46.242 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 328ms
2025-08-19 13:33:46.271 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 260ms
2025-08-19 13:33:46.400 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:46.423 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:46.897 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 285ms
2025-08-19 13:33:46.959 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 281ms
2025-08-19 13:33:47.400 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 1ms
2025-08-19 13:33:47.429 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:47.430 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:47.432 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 1ms
2025-08-19 13:33:47.433 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:33:48.511 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 746ms
2025-08-19 13:33:48.879 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 998ms
2025-08-19 13:33:49.651 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 2080ms
2025-08-19 13:33:49.734 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 2066ms
2025-08-19 13:33:49.975 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 1468ms
2025-08-19 13:41:53.405 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:41:53.918 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 309ms
2025-08-19 13:41:53.964 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /_internal/capabilities - 16ms
2025-08-19 13:41:54.118 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 1ms
2025-08-19 13:41:54.425 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /FixtureEntity - 89ms
2025-08-19 13:41:54.490 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /FixtureEntity/count - 3ms
2025-08-19 13:41:54.634 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 302ms
2025-08-19 13:41:56.235 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /stats/UserEntity - 126ms
2025-08-19 13:42:23.175 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /_internal/capabilities - 13ms
2025-08-19 13:42:23.238 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /authentication - 0ms
2025-08-19 13:42:23.266 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] POST /stats/UserEntity - 14ms
2025-08-19 13:42:23.719 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin info: [200] GET /authentication/callback - 310ms
2025-08-19 13:42:26.356 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /TeamEntity - 1ms
2025-08-19 13:42:26.510 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /TeamEntity/count - 2ms
2025-08-19 13:42:27.641 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /VenueEntity - 3ms
2025-08-19 13:42:27.787 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /VenueEntity/count - 1ms
2025-08-19 13:42:28.458 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /TeamProvidersEntity - 1ms
2025-08-19 13:42:28.607 BST
admin
ecs_cluster:forest-prod ecs_task_definition:forest:25 admin warning: [403] GET /TeamProvidersEntity/count - 2ms

Hey @Constantin_Predescu,

We see that your project is considered as a Cloud project.

How did you do your onboarding ? And how were you able to use the self hosted version (running the server on your marchine) ?

Hey @vince, it was working fine until a couple of days ago. To be fair, I don’t know exactly what triggered the issue. I added a few more tables and deployed a new version on the server. At first, I wasn’t able to access the new tables, so I pressed the “Sync schema” button. That might have triggered the issue because, at first, all my tables disappeared. After a new deploy, the tables came back, but I still didn’t have access.

Could the project have been switched to self-hosted?
Thanks.

Do you want a cloud version ? Because looking at your data it looks like you want a self hosted not cloud. Just let me know which version we should keep :sweat_smile:, I’ll do the switch

I want the self-hosted version.

I don’t need the cloud version and I have no idea how that happened :slight_smile:

Thanks

Could you try again, it should be good now :slight_smile:

Looks good.

Thanks a lot @vince for your help.

2 Likes