Skip to content

🔦 Feature: Improve audit logs to properly show REST API calls #2030

@RawmanGrey

Description

@RawmanGrey

I'm not certain if following should be considered as a feature request or as a bug report... But I feel that logs have to include data on all changes triggered by third party. Below tested endpoints are listed along with checked boxes, if changes are shown in logs:


POST <BASE_URL>/api/v1/db/data/<orgs=noco>/<project_name>/<table_name>/views/<view_name*>/

  • 'xc-auth'
  • 'xc-token' - 'Shared base' user mentioned in logs, I believe that token name should be used instead.

POST <BASE_URL>/api/v1/db/data/bulk/<orgs=noco>/<project_name>/<table_name>/

  • 'xc-auth'
  • 'xc-token'

PATCH <BASE_URL>/api/v1/db/data/<orgs=noco>/<project_name>/<table_name>/views/<view_name*>/<row_id>

  • 'xc-auth'
  • 'xc-token'

PATCH <BASE_URL>/api/v1/db/data/bulk/<orgs=noco>/<project_name>/<table_name>/

  • 'xc-auth'
  • 'xc-token'

DELETE <BASE_URL>/api/v1/db/data/<orgs=noco>/<project_name>/<table_name>/views/<view_name*>/<row_id>

  • 'xc-auth'
  • 'xc-token' - same 'Shared base' issue.
    I think, showing 'undefined' is not enough: at least some of deleted data should present.
    image

DELETE <BASE_URL>/api/v1/db/data/<orgs=noco>/<project_name>/<table_name>/all

  • 'xc-auth'
  • 'xc-token'

*Same results if '/views/<view_name>/' part omitted.

project info

Node: v12.22.12
Arch: x64
Platform: linux
Docker: true
Database: pg
ProjectOnRootDB: true
RootDB: pg
PackageVersion: 0.90.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions