From beb60efc8ef8c6b5a8a5227839b6a6df4d469871 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Tue, 31 Dec 2024 17:25:37 +0000 Subject: [PATCH] Run from docker image, not source --- .github/workflows/rest-api-fuzzer.yml | 26 +- setup/fuzzer/.env.fuzz-test-example | 35 --- setup/fuzzer/docker-compose-speckle.yml | 52 ++++ setup/fuzzer/speckle.backup.sql | 338 ++++++++++++------------ setup/fuzzer/token.txt | 2 +- 5 files changed, 225 insertions(+), 228 deletions(-) delete mode 100644 setup/fuzzer/.env.fuzz-test-example create mode 100644 setup/fuzzer/docker-compose-speckle.yml diff --git a/.github/workflows/rest-api-fuzzer.yml b/.github/workflows/rest-api-fuzzer.yml index 1e95d0abcf..b22f13d1f8 100644 --- a/.github/workflows/rest-api-fuzzer.yml +++ b/.github/workflows/rest-api-fuzzer.yml @@ -160,34 +160,15 @@ jobs: sudo apt-get install --yes --no-install-recommends postgresql-client PGPASSWORD=speckle psql -h 127.0.0.1 -U speckle -d speckle -p 5432 -w < ${{ github.workspace }}/speckle-server/setup/fuzzer/speckle.backup.sql - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: 'yarn' - cache-dependency-path: ${{ github.workspace }}/speckle-server/yarn.lock - - name: Install dependencies - working-directory: ${{ github.workspace }}/speckle-server/packages/server - run: yarn install - - name: Build public packages - working-directory: ${{ github.workspace }}/speckle-server/packages/server - run: yarn build:public - - name: Build speckle-server - working-directory: ${{ github.workspace }}/speckle-server/packages/server - run: yarn build - name: Configure speckle-server - working-directory: ${{ github.workspace }}/speckle-server/packages/server + working-directory: ${{ github.workspace }} run: | cp ${{ github.workspace }}/speckle-server/setup/fuzzer/.env.fuzz-test-example .env - name: Run speckle-server - working-directory: ${{ github.workspace }}/speckle-server/packages/server + working-directory: ${{ github.workspace }} timeout-minutes: 1 run: | - yarn start & - until curl --output /dev/null --silent --head --fail http://127.0.0.1:3000/readiness; do - echo "Waiting a further 3 seconds for speckle-server to start..." - sleep 3 - done + docker compose --file ${{ github.workspace }}/speckle-server/setup/fuzzer/docker-compose-speckle.yml up --detach - name: Run RESTler coverage test run: | @@ -259,3 +240,4 @@ jobs: if: always() run: | docker compose --file ${{ github.workspace }}/speckle-server/docker-compose-deps.yml logs + docker compose --file ${{ github.workspace }}/speckle-server/setup/fuzzer/docker-compose-speckle.yml logs diff --git a/setup/fuzzer/.env.fuzz-test-example b/setup/fuzzer/.env.fuzz-test-example deleted file mode 100644 index 7b6202a79a..0000000000 --- a/setup/fuzzer/.env.fuzz-test-example +++ /dev/null @@ -1,35 +0,0 @@ -# BIND_ADDRESS="127.0.0.1" -PORT=3000 - -CANONICAL_URL="http://127.0.0.1:3000" -SESSION_SECRET="-> FILL IN <-" - -REDIS_URL="redis://127.0.0.1:6379" - -USE_FRONTEND_2=true -FRONTEND_ORIGIN="http://127.0.0.1:8081" - -ONBOARDING_STREAM_URL=https://latest.speckle.systems/projects/843d07eb10 - -ONBOARDING_STREAM_CACHE_BUST_NUMBER=1 - -ENABLE_FE2_MESSAGING=false - -POSTGRES_URL="127.0.0.1" -POSTGRES_USER="speckle" -POSTGRES_PASSWORD="speckle" -POSTGRES_DB="speckle" - -S3_ENDPOINT="http://127.0.0.1:9000" -S3_ACCESS_KEY="minioadmin" -S3_SECRET_KEY="minioadmin" -S3_BUCKET="speckle-server" -S3_CREATE_BUCKET="true" - -EMAIL=false -EMAIL_HOST="127.0.0.1" -EMAIL_FROM="no-reply@example.org" -EMAIL_PORT="1025" - -DISABLE_NOTIFICATIONS_CONSUMPTION=true -STRATEGY_LOCAL=true diff --git a/setup/fuzzer/docker-compose-speckle.yml b/setup/fuzzer/docker-compose-speckle.yml new file mode 100644 index 0000000000..e1649f2bba --- /dev/null +++ b/setup/fuzzer/docker-compose-speckle.yml @@ -0,0 +1,52 @@ +version: '2.4' +services: + speckle-server: + platform: linux/amd64 + image: speckle/speckle-server:latest + restart: always + ports: + - '0.0.0.0:3000:3000' + healthcheck: + test: + - CMD + - /nodejs/bin/node + - -e + - "try { require('node:http').request({headers: {'Content-Type': 'application/json'}, port:3000, hostname:'127.0.0.1', path:'/readiness', method: 'GET', timeout: 2000 }, (res) => { body = ''; res.on('data', (chunk) => {body += chunk;}); res.on('end', () => {process.exit(res.statusCode != 200 || body.toLowerCase().includes('error'));}); }).end(); } catch { process.exit(1); }" + interval: 10s + timeout: 10s + retries: 3 + start_period: 90s + environment: + PORT: 3000 + + CANONICAL_URL: 'http://127.0.0.1:3000' + SESSION_SECRET: '-> FILL IN <-' + + REDIS_URL: 'redis://redis:6379' + + USE_FRONTEND_2: true + FRONTEND_ORIGIN: 'http://127.0.0.1:8081' + + ENABLE_FE2_MESSAGING: false + + POSTGRES_URL: 'postgres' + POSTGRES_USER: 'speckle' + POSTGRES_PASSWORD: 'speckle' + POSTGRES_DB: 'speckle' + + S3_ENDPOINT: 'http://minio:9000' + S3_ACCESS_KEY: 'minioadmin' + S3_SECRET_KEY: 'minioadmin' + S3_BUCKET: 'speckle-server' + S3_CREATE_BUCKET: 'true' + + EMAIL: false + + DISABLE_NOTIFICATIONS_CONSUMPTION: true + STRATEGY_LOCAL: true + networks: + - speckle-server_default + +networks: + speckle-server_default: + external: true diff --git a/setup/fuzzer/speckle.backup.sql b/setup/fuzzer/speckle.backup.sql index 02dc84475f..75cb9c3868 100644 --- a/setup/fuzzer/speckle.backup.sql +++ b/setup/fuzzer/speckle.backup.sql @@ -22,7 +22,7 @@ SET row_security = off; -- COPY public.users (id, suuid, "createdAt", name, bio, company, email, verified, avatar, profiles, "passwordDigest", ip) FROM stdin; -bd195995fe 541d6d57-7726-444f-a5ab-baea78144b9d 2024-12-31 15:25:51.318+00 Fuzz Test \N \N fuzztest@example.org f \N \N $2b$10$EjlFakaD7KampuN3Zhf1lO5rCHK7dOizlmMDyT4Cw6JwAs7jouW.2 \N +3fb61f0d69 6bff2a82-30db-4d5e-b4a6-78dbb07f0b2b 2024-12-31 17:15:25.885+00 Fuzz Test \N \N fuzztest@example.org f \N \N $2b$10$n9TiIOXO8PagZ8azbKyGk.fa6u2iju7mgEtDwyiBnRRZGaNLlMUQS \N \. @@ -31,8 +31,8 @@ bd195995fe 541d6d57-7726-444f-a5ab-baea78144b9d 2024-12-31 15:25:51.318+00 Fuzz -- COPY public.api_tokens (id, "tokenDigest", owner, name, "lastChars", revoked, lifespan, "createdAt", "lastUsed") FROM stdin; -d725857cc3 $2b$10$ZkJ9R8//SXclnt/3ZFQNG.c5qRJYjwM/6EbwVRSCU37PVpTa/Nt.G bd195995fe all b58a5a f 3154000000000 2024-12-31 15:26:43.130443+00 2024-12-31 15:26:43.130443+00 -6d4a0f4aea $2b$10$kcT4aItS5Hcas9ty8vPoKOodNiyCmxKSRcHAlxufR0dDzrn3wRrhG bd195995fe Speckle Web Manager-token bb52ff f 3154000000000 2024-12-31 15:25:51.924544+00 2024-12-31 15:26:43.227+00 +314504c3d0 $2b$10$xOYgfOmq1XHXO0dPCctlk.l38qxEsyZZk4q6YstaGJFdK4RBVk5QK 3fb61f0d69 all 8b1a70 f 3154000000000 2024-12-31 17:16:19.315306+00 2024-12-31 17:16:19.315306+00 +d018e9f40e $2b$10$NNwurjMss/m8/8HV7vROIetVRWPaKgN57iPv0j92HztsritKnZU4W 3fb61f0d69 Speckle Web Manager-token 54da62 f 3154000000000 2024-12-31 17:15:26.482142+00 2024-12-31 17:17:23.802+00 \. @@ -41,13 +41,13 @@ d725857cc3 $2b$10$ZkJ9R8//SXclnt/3ZFQNG.c5qRJYjwM/6EbwVRSCU37PVpTa/Nt.G bd195995 -- COPY public.server_apps (id, secret, name, description, "termsAndConditionsLink", logo, public, "trustByDefault", "authorId", "createdAt", "redirectUrl") FROM stdin; -spklexcel spklexcel Speckle Connector For Excel The Speckle Connector For Excel. For more info, check the docs here: https://speckle.guide/user/excel. \N \N t t \N 2024-12-31 15:20:24.17486+00 https://speckle-excel.netlify.app -explorer explorer Speckle Explorer GraphiQL Playground with authentication. \N \N t t \N 2024-12-31 15:20:24.173284+00 http://127.0.0.1:3000/explorer -sca sca Speckle Connector A Speckle Desktop Connectors. \N \N t t \N 2024-12-31 15:20:24.174077+00 http://localhost:29363 -spklwebapp spklwebapp Speckle Web Manager The Speckle Web Manager is your one-stop place to manage and coordinate your data. \N \N t t \N 2024-12-31 15:20:24.173144+00 http://127.0.0.1:3000 -sdm sdm Speckle Desktop Manager Manages local installations of Speckle connectors, kits and everything else. \N \N t t \N 2024-12-31 15:20:24.174147+00 speckle://account -spklpwerbi spklpwerbi Speckle Connector For PowerBI The Speckle Connector For Excel. For more info check the docs here: https://speckle.guide/user/powerbi.html. \N \N t t \N 2024-12-31 15:20:24.175225+00 https://oauth.powerbi.com/views/oauthredirect.html -spklautoma spklautoma Speckle Automate Our automation platform \N \N t t \N 2024-12-31 15:20:24.175615+00 undefined/authn/callback +spklexcel spklexcel Speckle Connector For Excel The Speckle Connector For Excel. For more info, check the docs here: https://speckle.guide/user/excel. \N \N t t \N 2024-12-31 17:13:26.847617+00 https://speckle-excel.netlify.app +spklwebapp spklwebapp Speckle Web Manager The Speckle Web Manager is your one-stop place to manage and coordinate your data. \N \N t t \N 2024-12-31 17:13:26.846065+00 http://127.0.0.1:3000 +spklautoma spklautoma Speckle Automate Our automation platform \N \N t t \N 2024-12-31 17:13:26.848538+00 undefined/authn/callback +explorer explorer Speckle Explorer GraphiQL Playground with authentication. \N \N t t \N 2024-12-31 17:13:26.846596+00 http://127.0.0.1:3000/explorer +sdm sdm Speckle Desktop Manager Manages local installations of Speckle connectors, kits and everything else. \N \N t t \N 2024-12-31 17:13:26.847991+00 speckle://account +sca sca Speckle Connector A Speckle Desktop Connectors. \N \N t t \N 2024-12-31 17:13:26.846334+00 http://localhost:29363 +spklpwerbi spklpwerbi Speckle Connector For PowerBI The Speckle Connector For Excel. For more info check the docs here: https://speckle.guide/user/powerbi.html. \N \N t t \N 2024-12-31 17:13:26.847174+00 https://oauth.powerbi.com/views/oauthredirect.html \. @@ -72,7 +72,7 @@ COPY public.workspaces (id, name, description, "createdAt", "updatedAt", logo, " -- COPY public.streams (id, name, description, "isPublic", "clonedFrom", "createdAt", "updatedAt", "allowPublicComments", "isDiscoverable", "workspaceId", "regionKey") FROM stdin; -bddc34ce4b Fuzz's First Project Welcome to Speckle! This is your sample project, designed by Beijia Gu - feel free to do whatever you want with it! t \N 2024-12-31 15:25:52.271+00 2024-12-31 15:25:52.289+00 f t \N \N +47d8fd9d36 Fuzz's First Project Welcome to Speckle! This is your sample project, designed by Beijia Gu - feel free to do whatever you want with it! t \N 2024-12-31 17:15:26.845+00 2024-12-31 17:15:26.872+00 f t \N \N \. @@ -153,8 +153,8 @@ COPY public.blob_storage (id, "streamId", "userId", "objectKey", "fileName", "fi -- COPY public.branches (id, "streamId", "authorId", name, description, "createdAt", "updatedAt") FROM stdin; -cc21a58628 bddc34ce4b bd195995fe main default branch 2024-12-31 15:25:52.277+00 2024-12-31 15:25:52.277+00 -833dcf6df1 bddc34ce4b bd195995fe fuzzy \N 2024-12-31 15:26:00.401+00 2024-12-31 15:26:00.401+00 +c4f249efcd 47d8fd9d36 3fb61f0d69 main default branch 2024-12-31 17:15:26.855+00 2024-12-31 17:15:26.855+00 +3c4ce908af 47d8fd9d36 3fb61f0d69 fuzzy \N 2024-12-31 17:17:23.699+00 2024-12-31 17:17:23.699+00 \. @@ -203,7 +203,7 @@ COPY public.comment_views ("commentId", "userId", "viewedAt") FROM stdin; -- COPY public.email_verifications (id, email, "createdAt") FROM stdin; -608666d4fd018d334500 fuzztest@example.org 2024-12-31 15:25:51.356+00 +6ff3e4d864195cabc2dd fuzztest@example.org 2024-12-31 17:15:25.924+00 \. @@ -236,105 +236,103 @@ COPY public.gendo_user_credits ("userId", "resetDate", used) FROM stdin; -- COPY public.knex_migrations (id, name, batch, migration_time) FROM stdin; -1 000-core.js 1 2024-12-31 15:20:17.258+00 -2 2020-05-29-apps.js 1 2024-12-31 15:20:17.33+00 -3 20201222100048_add_sourceapp_to_commits.js 1 2024-12-31 15:20:17.332+00 -4 20201222101522_add_totalchildrencount_to_commits.js 1 2024-12-31 15:20:17.335+00 -5 20201223120532_add_commit_parents_simplification.js 1 2024-12-31 15:20:17.34+00 -6 20201230111428_add_scopes_public_field.js 1 2024-12-31 15:20:17.342+00 -7 20210225130308_add_roles_public_field.js 1 2024-12-31 15:20:17.344+00 -8 20210303185834_invites.js 1 2024-12-31 15:20:17.356+00 -9 20210304111614_pwdreset.js 1 2024-12-31 15:20:17.365+00 -10 20210314101154_add_invitefield_to_serverinfo.js 1 2024-12-31 15:20:17.37+00 -11 20210322190000_add_streamid_to_objects.js 1 2024-12-31 15:20:17.433+00 -12 20210426200000-previews.js 1 2024-12-31 15:20:17.458+00 -13 20210603160000_optional_user_references.js 1 2024-12-31 15:20:17.471+00 -14 20210616173000_stream_activity.js 1 2024-12-31 15:20:17.486+00 -15 20210701180000-webhooks.js 1 2024-12-31 15:20:17.518+00 -16 20210915130000-fileuploads.js 1 2024-12-31 15:20:17.53+00 -17 20211119105730_de_duplicate_users.js 1 2024-12-31 15:20:17.541+00 -18 20220118181256-email-verifications.js 1 2024-12-31 15:20:17.554+00 -19 20220222173000_comments.js 1 2024-12-31 15:20:17.593+00 -20 20220315140000_ratelimit.js 1 2024-12-31 15:20:17.611+00 -21 20220318121405_add_stream_favorites.js 1 2024-12-31 15:20:17.637+00 -22 20220412150558_stream-public-comments.js 1 2024-12-31 15:20:17.64+00 -23 202206030936_add_asset_storage.js 1 2024-12-31 15:20:17.649+00 -24 202206231429_add_file_hash_to_blobs.js 1 2024-12-31 15:20:17.657+00 -25 20220629110918_server_invites_rework.js 1 2024-12-31 15:20:17.678+00 -26 20220707135553_make_users_email_not_nullable.js 1 2024-12-31 15:20:17.688+00 -27 20220722092821_add_invite_token_field.js 1 2024-12-31 15:20:17.697+00 -28 20220722110643_fix_comments_delete_cascade.js 1 2024-12-31 15:20:17.706+00 -29 20220727091536_blobs-id-length-removal.js 1 2024-12-31 15:20:17.708+00 -30 20220803104832_ts_test.js 1 2024-12-31 15:20:17.709+00 -31 20220819091523_add_stream_discoverable_field.js 1 2024-12-31 15:20:17.712+00 -32 20220823100915_migrate_streams_to_lower_precision_timestamps.js 1 2024-12-31 15:20:17.741+00 -33 20220825082631_drop_email_verifications_used_col.js 1 2024-12-31 15:20:17.769+00 -34 20220825123323_usernotificationpreferences.js 1 2024-12-31 15:20:17.78+00 -35 20220829102231_add_server_access_requests_table.js 1 2024-12-31 15:20:17.792+00 -36 20220921084935_fix_branch_nullability.js 1 2024-12-31 15:20:17.797+00 -37 20220929141717_scheduled_tasks.js 1 2024-12-31 15:20:17.801+00 -38 20221104104921_webhooks_drop_stream_fk.js 1 2024-12-31 15:20:17.803+00 -39 20221122133014_add_user_onboarding_data.js 1 2024-12-31 15:20:17.805+00 -40 20221213124322_migrate_more_table_precisions.js 1 2024-12-31 15:20:17.849+00 -41 20230316091225_create_users_meta_table.js 1 2024-12-31 15:20:17.856+00 -42 20230316132827_remove_user_is_onboarding_complete_col.js 1 2024-12-31 15:20:17.858+00 -43 20230330082209_stricter_file_uploads_schema.js 1 2024-12-31 15:20:17.909+00 -44 20230517122919_clean_up_invalid_stream_invites.js 1 2024-12-31 15:20:17.915+00 -45 20230713094611_create_streams_meta_table.js 1 2024-12-31 15:20:17.935+00 -46 20230727150957_serverGuestMode.js 1 2024-12-31 15:20:17.94+00 -47 20230818075729_add_invite_server_role_support.js 1 2024-12-31 15:20:17.943+00 -48 20230905162038_automations.js 1 2024-12-31 15:20:17.966+00 -49 20230907131636_migrate_invites_to_lower_precision_timestamps.js 1 2024-12-31 15:20:17.986+00 -50 20230912114629_automations_tables_normalization.js 1 2024-12-31 15:20:18.023+00 -51 20230914071540_make_function_run_results_nullable.js 1 2024-12-31 15:20:18.028+00 -52 20230919080704_add_webhook_config_timestamps.js 1 2024-12-31 15:20:18.031+00 -53 20230920130032_fix_project_delete_cascade.js 1 2024-12-31 15:20:18.051+00 -54 20231025100054_automation_function_name_and_logo.js 1 2024-12-31 15:20:18.056+00 -55 20240109101048_create_token_resource_access_table.js 1 2024-12-31 15:20:18.073+00 -56 20240304143445_rename_tables.js 1 2024-12-31 15:20:18.078+00 -57 20240305120620_automate.js 1 2024-12-31 15:20:18.125+00 -58 20240321092858_triggers.js 1 2024-12-31 15:20:18.161+00 -59 20240404075414_revision_active.js 1 2024-12-31 15:20:18.166+00 -60 20240404173455_automation_token.js 1 2024-12-31 15:20:18.2+00 -61 20240507075055_add_function_run_timestamps.js 1 2024-12-31 15:20:18.21+00 -62 20240507140149_add_encryption_support.js 1 2024-12-31 15:20:18.216+00 -63 20240522130000_gendo.js 1 2024-12-31 15:20:18.229+00 -64 20240523192300_add_is_test_automation_column.js 1 2024-12-31 15:20:18.232+00 -65 20240620105859_drop_beta_tables.js 1 2024-12-31 15:20:18.242+00 -66 20240621174016_workspaces.js 1 2024-12-31 15:20:18.262+00 -67 20240628112300_dropCreatorId.js 1 2024-12-31 15:20:18.264+00 -68 20240703084247_user-emails.js 1 2024-12-31 15:20:18.276+00 -69 20240710154658_user_emails_backfill.js 1 2024-12-31 15:20:18.28+00 -70 20240716094858_generalized_invite_record_resources.js 1 2024-12-31 15:20:18.283+00 -71 20240716134617_migrate_to_resources_array.js 1 2024-12-31 15:20:18.295+00 -72 20240801000000_logos.js 1 2024-12-31 15:20:18.297+00 -73 20240802212846_cascadeDeleteWorkspaceProjects.js 1 2024-12-31 15:20:18.31+00 -74 20240806160740_workspace_domains.js 1 2024-12-31 15:20:18.334+00 -75 20240807174901_add_column_domainBasedMembershipProtection.js 1 2024-12-31 15:20:18.337+00 -76 20240808091944_add_workspace_discovery_flag.js 1 2024-12-31 15:20:18.34+00 -77 20240808140602_add_invite_updated_at.js 1 2024-12-31 15:20:18.346+00 -78 20240813125251_workspaceAclWithTimestamps.js 1 2024-12-31 15:20:18.349+00 -79 20240820131619_fallbackWorkspaceLogo.js 1 2024-12-31 15:20:18.351+00 -80 20240910163614_add_column_defaultProjectRole.js 1 2024-12-31 15:20:18.354+00 -81 20240912134548_add_workspace_slug.js 1 2024-12-31 15:20:18.366+00 -82 20240926112407_copy_workspace_slug.js 1 2024-12-31 15:20:18.37+00 -83 20240930141322_workspace_sso.js 1 2024-12-31 15:20:18.399+00 -84 20241014092507_workspace_sso_expiration.js 1 2024-12-31 15:20:18.402+00 -85 20241018132400_workspace_checkout.js 1 2024-12-31 15:20:18.436+00 -86 20241031081827_create_regions_table.js 1 2024-12-31 15:20:18.442+00 -87 20241101055531_project_region.js 1 2024-12-31 15:20:18.446+00 -88 20241102055157_project_region_nofk.js 1 2024-12-31 15:20:18.449+00 -89 20241105070219_create_workspace_regions_table.js 1 2024-12-31 15:20:18.462+00 -90 20241105144301_cascade_delete_workspace_plans.js 1 2024-12-31 15:20:18.468+00 -91 20241120063859_cascade_delete_checkout_session.js 1 2024-12-31 15:20:18.475+00 -92 20241120140402_gendo_credits.js 1 2024-12-31 15:20:18.481+00 -93 20241126084242_workspace_plan_rename.js 1 2024-12-31 15:20:18.484+00 -94 20241126142602_workspace_plan_date.js 1 2024-12-31 15:20:18.485+00 -95 20241128153315_workspace_creation_state.js 1 2024-12-31 15:20:18.491+00 -96 20241202183039_workspace_start_trial.js 1 2024-12-31 15:20:18.493+00 -97 20241203212110_cascade_delete_automations.js 1 2024-12-31 15:20:18.508+00 -98 20241230115552_object_size.js 1 2024-12-31 15:20:18.51+00 -99 20241230141235_object_size_backfill.js 1 2024-12-31 15:20:18.513+00 +1 000-core.js 1 2024-12-31 17:13:23.07+00 +2 2020-05-29-apps.js 1 2024-12-31 17:13:23.168+00 +3 20201222100048_add_sourceapp_to_commits.js 1 2024-12-31 17:13:23.177+00 +4 20201222101522_add_totalchildrencount_to_commits.js 1 2024-12-31 17:13:23.18+00 +5 20201223120532_add_commit_parents_simplification.js 1 2024-12-31 17:13:23.184+00 +6 20201230111428_add_scopes_public_field.js 1 2024-12-31 17:13:23.185+00 +7 20210225130308_add_roles_public_field.js 1 2024-12-31 17:13:23.19+00 +8 20210303185834_invites.js 1 2024-12-31 17:13:23.207+00 +9 20210304111614_pwdreset.js 1 2024-12-31 17:13:23.213+00 +10 20210314101154_add_invitefield_to_serverinfo.js 1 2024-12-31 17:13:23.216+00 +11 20210322190000_add_streamid_to_objects.js 1 2024-12-31 17:13:23.303+00 +12 20210426200000-previews.js 1 2024-12-31 17:13:23.311+00 +13 20210603160000_optional_user_references.js 1 2024-12-31 17:13:23.315+00 +14 20210616173000_stream_activity.js 1 2024-12-31 17:13:23.322+00 +15 20210701180000-webhooks.js 1 2024-12-31 17:13:23.333+00 +16 20210915130000-fileuploads.js 1 2024-12-31 17:13:23.338+00 +17 20211119105730_de_duplicate_users.js 1 2024-12-31 17:13:23.34+00 +18 20220118181256-email-verifications.js 1 2024-12-31 17:13:23.345+00 +19 20220222173000_comments.js 1 2024-12-31 17:13:23.364+00 +20 20220315140000_ratelimit.js 1 2024-12-31 17:13:23.369+00 +21 20220318121405_add_stream_favorites.js 1 2024-12-31 17:13:23.375+00 +22 20220412150558_stream-public-comments.js 1 2024-12-31 17:13:23.376+00 +23 202206030936_add_asset_storage.js 1 2024-12-31 17:13:23.381+00 +24 202206231429_add_file_hash_to_blobs.js 1 2024-12-31 17:13:23.382+00 +25 20220629110918_server_invites_rework.js 1 2024-12-31 17:13:23.398+00 +26 20220707135553_make_users_email_not_nullable.js 1 2024-12-31 17:13:23.406+00 +27 20220722092821_add_invite_token_field.js 1 2024-12-31 17:13:23.41+00 +28 20220722110643_fix_comments_delete_cascade.js 1 2024-12-31 17:13:23.419+00 +29 20220727091536_blobs-id-length-removal.js 1 2024-12-31 17:13:23.421+00 +30 20220803104832_ts_test.js 1 2024-12-31 17:13:23.422+00 +31 20220819091523_add_stream_discoverable_field.js 1 2024-12-31 17:13:23.423+00 +32 20220823100915_migrate_streams_to_lower_precision_timestamps.js 1 2024-12-31 17:13:23.447+00 +33 20220825082631_drop_email_verifications_used_col.js 1 2024-12-31 17:13:23.457+00 +34 20220825123323_usernotificationpreferences.js 1 2024-12-31 17:13:23.461+00 +35 20220829102231_add_server_access_requests_table.js 1 2024-12-31 17:13:23.468+00 +36 20220921084935_fix_branch_nullability.js 1 2024-12-31 17:13:23.472+00 +37 20220929141717_scheduled_tasks.js 1 2024-12-31 17:13:23.475+00 +38 20221104104921_webhooks_drop_stream_fk.js 1 2024-12-31 17:13:23.476+00 +39 20221122133014_add_user_onboarding_data.js 1 2024-12-31 17:13:23.477+00 +40 20221213124322_migrate_more_table_precisions.js 1 2024-12-31 17:13:23.508+00 +41 20230316091225_create_users_meta_table.js 1 2024-12-31 17:13:23.516+00 +42 20230316132827_remove_user_is_onboarding_complete_col.js 1 2024-12-31 17:13:23.518+00 +43 20230330082209_stricter_file_uploads_schema.js 1 2024-12-31 17:13:23.534+00 +44 20230517122919_clean_up_invalid_stream_invites.js 1 2024-12-31 17:13:23.537+00 +45 20230713094611_create_streams_meta_table.js 1 2024-12-31 17:13:23.541+00 +46 20230727150957_serverGuestMode.js 1 2024-12-31 17:13:23.542+00 +47 20230818075729_add_invite_server_role_support.js 1 2024-12-31 17:13:23.543+00 +48 20230905162038_automations.js 1 2024-12-31 17:13:23.551+00 +49 20230907131636_migrate_invites_to_lower_precision_timestamps.js 1 2024-12-31 17:13:23.56+00 +50 20230912114629_automations_tables_normalization.js 1 2024-12-31 17:13:23.583+00 +51 20230914071540_make_function_run_results_nullable.js 1 2024-12-31 17:13:23.586+00 +52 20230919080704_add_webhook_config_timestamps.js 1 2024-12-31 17:13:23.587+00 +53 20230920130032_fix_project_delete_cascade.js 1 2024-12-31 17:13:23.595+00 +54 20231025100054_automation_function_name_and_logo.js 1 2024-12-31 17:13:23.596+00 +55 20240109101048_create_token_resource_access_table.js 1 2024-12-31 17:13:23.601+00 +56 20240304143445_rename_tables.js 1 2024-12-31 17:13:23.605+00 +57 20240305120620_automate.js 1 2024-12-31 17:13:23.635+00 +58 20240321092858_triggers.js 1 2024-12-31 17:13:23.656+00 +59 20240404075414_revision_active.js 1 2024-12-31 17:13:23.658+00 +60 20240404173455_automation_token.js 1 2024-12-31 17:13:23.674+00 +61 20240507075055_add_function_run_timestamps.js 1 2024-12-31 17:13:23.676+00 +62 20240507140149_add_encryption_support.js 1 2024-12-31 17:13:23.685+00 +63 20240522130000_gendo.js 1 2024-12-31 17:13:23.697+00 +64 20240523192300_add_is_test_automation_column.js 1 2024-12-31 17:13:23.699+00 +65 20240620105859_drop_beta_tables.js 1 2024-12-31 17:13:23.714+00 +66 20240621174016_workspaces.js 1 2024-12-31 17:13:23.739+00 +67 20240628112300_dropCreatorId.js 1 2024-12-31 17:13:23.742+00 +68 20240703084247_user-emails.js 1 2024-12-31 17:13:23.759+00 +69 20240710154658_user_emails_backfill.js 1 2024-12-31 17:13:23.765+00 +70 20240716094858_generalized_invite_record_resources.js 1 2024-12-31 17:13:23.778+00 +71 20240716134617_migrate_to_resources_array.js 1 2024-12-31 17:13:23.802+00 +72 20240801000000_logos.js 1 2024-12-31 17:13:23.808+00 +73 20240802212846_cascadeDeleteWorkspaceProjects.js 1 2024-12-31 17:13:23.818+00 +74 20240806160740_workspace_domains.js 1 2024-12-31 17:13:23.842+00 +75 20240807174901_add_column_domainBasedMembershipProtection.js 1 2024-12-31 17:13:23.845+00 +76 20240808091944_add_workspace_discovery_flag.js 1 2024-12-31 17:13:23.848+00 +77 20240808140602_add_invite_updated_at.js 1 2024-12-31 17:13:23.852+00 +78 20240813125251_workspaceAclWithTimestamps.js 1 2024-12-31 17:13:23.857+00 +79 20240820131619_fallbackWorkspaceLogo.js 1 2024-12-31 17:13:23.864+00 +80 20240910163614_add_column_defaultProjectRole.js 1 2024-12-31 17:13:23.869+00 +81 20240912134548_add_workspace_slug.js 1 2024-12-31 17:13:23.889+00 +82 20240926112407_copy_workspace_slug.js 1 2024-12-31 17:13:23.892+00 +83 20240930141322_workspace_sso.js 1 2024-12-31 17:13:23.911+00 +84 20241014092507_workspace_sso_expiration.js 1 2024-12-31 17:13:23.913+00 +85 20241018132400_workspace_checkout.js 1 2024-12-31 17:13:23.955+00 +86 20241031081827_create_regions_table.js 1 2024-12-31 17:13:23.964+00 +87 20241101055531_project_region.js 1 2024-12-31 17:13:23.972+00 +88 20241102055157_project_region_nofk.js 1 2024-12-31 17:13:23.978+00 +89 20241105070219_create_workspace_regions_table.js 1 2024-12-31 17:13:23.996+00 +90 20241105144301_cascade_delete_workspace_plans.js 1 2024-12-31 17:13:24.005+00 +91 20241120063859_cascade_delete_checkout_session.js 1 2024-12-31 17:13:24.016+00 +92 20241120140402_gendo_credits.js 1 2024-12-31 17:13:24.028+00 +93 20241126084242_workspace_plan_rename.js 1 2024-12-31 17:13:24.041+00 +94 20241126142602_workspace_plan_date.js 1 2024-12-31 17:13:24.045+00 +95 20241128153315_workspace_creation_state.js 1 2024-12-31 17:13:24.063+00 +96 20241202183039_workspace_start_trial.js 1 2024-12-31 17:13:24.07+00 +97 20241203212110_cascade_delete_automations.js 1 2024-12-31 17:13:24.097+00 \. @@ -367,7 +365,7 @@ COPY public.object_preview ("streamId", "objectId", "previewStatus", priority, " -- Data for Name: objects; Type: TABLE DATA; Schema: public; Owner: speckle -- -COPY public.objects (id, "speckleType", "totalChildrenCount", "totalChildrenCountByDepth", "createdAt", data, "streamId", "sizeBytes") FROM stdin; +COPY public.objects (id, "speckleType", "totalChildrenCount", "totalChildrenCountByDepth", "createdAt", data, "streamId") FROM stdin; \. @@ -376,7 +374,7 @@ COPY public.objects (id, "speckleType", "totalChildrenCount", "totalChildrenCoun -- COPY public.personal_api_tokens ("tokenId", "userId") FROM stdin; -d725857cc3 bd195995fe +314504c3d0 3fb61f0d69 \. @@ -409,7 +407,7 @@ COPY public.ratelimit_actions ("timestamp", action, source) FROM stdin; -- COPY public.refresh_tokens (id, "tokenDigest", "appId", "userId", "createdAt", lifespan) FROM stdin; -ce9fc7efef $2b$10$pAAsDpjNndfRi4fs0uvCh.p5k.WVPXWfZklUgwbBtBIm6PFU0bFrS spklwebapp bd195995fe 2024-12-31 15:25:51.990884+00 15770000000 +b9eeee1b67 $2b$10$V9el87hGEUU43t/7R45qlegPxj8J6hfVKfjWwC4ueUwDGqNgInet. spklwebapp 3fb61f0d69 2024-12-31 17:15:26.550566+00 15770000000 \. @@ -476,9 +474,9 @@ server:archived-user No longer has access to the server. server server_acl 10 f stream:owner Owners have full access, including deletion rights & access control. streams stream_acl 1000 t stream:contributor Contributors can create new branches and commits, but they cannot edit stream details or manage collaborators. streams stream_acl 500 t stream:reviewer Reviewers can only view (read) the data from this stream. streams stream_acl 100 t -workspace:guest An external guest member of the workspace with limited rights workspaces workspace_acl 50 t workspace:admin Has root on the workspace workspaces workspace_acl 1000 t workspace:member A regular member of the workspace workspaces workspace_acl 100 t +workspace:guest An external guest member of the workspace with limited rights workspaces workspace_acl 50 t \. @@ -487,7 +485,7 @@ workspace:member A regular member of the workspace workspaces workspace_acl 100 -- COPY public.server_acl ("userId", role) FROM stdin; -bd195995fe server:admin +3fb61f0d69 server:admin \. @@ -525,44 +523,44 @@ explorer profile:delete explorer users:read explorer server:stats explorer users:email -sdm streams:read explorer server:setup -sdm streams:write explorer tokens:read -sdm profile:read explorer tokens:write -sdm profile:email explorer users:invite -sdm users:read -sca streams:read explorer workspace:create +explorer workspace:update +explorer workspace:read +explorer workspace:delete +explorer workspace:billing +sca streams:read sca streams:write sca profile:read sca profile:email -explorer workspace:update sca users:read -explorer workspace:read sca users:invite -explorer workspace:delete -explorer workspace:billing -sdm users:invite +spklpwerbi streams:read +spklpwerbi profile:read +spklpwerbi profile:email +spklpwerbi users:read +spklpwerbi users:invite spklexcel streams:read spklexcel streams:write spklexcel profile:read spklexcel profile:email spklexcel users:read spklexcel users:invite -spklpwerbi streams:read -spklpwerbi profile:read -spklpwerbi profile:email -spklpwerbi users:read -spklpwerbi users:invite spklautoma profile:email spklautoma profile:read spklautoma users:read spklautoma tokens:write spklautoma streams:read spklautoma streams:write +sdm streams:read +sdm streams:write +sdm profile:read +sdm profile:email +sdm users:read +sdm users:invite \. @@ -596,7 +594,7 @@ COPY public.sso_providers (id, "providerType", "encryptedProviderData", "created -- COPY public.stream_acl ("userId", "resourceId", role) FROM stdin; -bd195995fe bddc34ce4b stream:owner +3fb61f0d69 47d8fd9d36 stream:owner \. @@ -605,9 +603,9 @@ bd195995fe bddc34ce4b stream:owner -- COPY public.stream_activity ("streamId", "time", "resourceType", "resourceId", "actionType", "userId", info, message) FROM stdin; -\N 2024-12-31 15:25:51.702927+00 user bd195995fe user_create bd195995fe {"user": {"id": "bd195995fe", "ip": null, "bio": null, "name": "Fuzz Test", "email": "fuzztest@example.org", "suuid": "541d6d57-7726-444f-a5ab-baea78144b9d", "avatar": null, "company": null, "profiles": null, "verified": false, "createdAt": "2024-12-31T15:25:51.318Z", "passwordDigest": "$2b$10$EjlFakaD7KampuN3Zhf1lO5rCHK7dOizlmMDyT4Cw6JwAs7jouW.2"}} User created -bddc34ce4b 2024-12-31 15:25:52.2804+00 stream bddc34ce4b stream_create bd195995fe {"input": {"id": "bddc34ce4b", "name": "Rectangular Edifice", "isPublic": true, "createdAt": "2024-12-31T15:25:52.271Z", "regionKey": null, "updatedAt": "2024-12-31T15:25:52.271Z", "clonedFrom": null, "description": "", "workspaceId": null, "isDiscoverable": true, "allowPublicComments": false}} Stream Rectangular Edifice created -bddc34ce4b 2024-12-31 15:26:00.404984+00 branch 833dcf6df1 branch_create bd195995fe {"branch": {"id": "833dcf6df1", "name": "fuzzy", "authorId": "bd195995fe", "streamId": "bddc34ce4b", "createdAt": "2024-12-31T15:26:00.401Z", "updatedAt": "2024-12-31T15:26:00.401Z", "description": null}} Branch created: fuzzy (833dcf6df1) +\N 2024-12-31 17:15:26.189971+00 user 3fb61f0d69 user_create 3fb61f0d69 {"user": {"id": "3fb61f0d69", "ip": null, "bio": null, "name": "Fuzz Test", "email": "fuzztest@example.org", "suuid": "6bff2a82-30db-4d5e-b4a6-78dbb07f0b2b", "avatar": null, "company": null, "profiles": null, "verified": false, "createdAt": "2024-12-31T17:15:25.885Z", "passwordDigest": "$2b$10$n9TiIOXO8PagZ8azbKyGk.fa6u2iju7mgEtDwyiBnRRZGaNLlMUQS"}} User created +47d8fd9d36 2024-12-31 17:15:26.86193+00 stream 47d8fd9d36 stream_create 3fb61f0d69 {"input": {"id": "47d8fd9d36", "name": "Shiny Edifice", "isPublic": true, "createdAt": "2024-12-31T17:15:26.845Z", "regionKey": null, "updatedAt": "2024-12-31T17:15:26.845Z", "clonedFrom": null, "description": "", "workspaceId": null, "isDiscoverable": true, "allowPublicComments": false}} Stream Shiny Edifice created +47d8fd9d36 2024-12-31 17:17:23.701158+00 branch 3c4ce908af branch_create 3fb61f0d69 {"branch": {"id": "3c4ce908af", "name": "fuzzy", "authorId": "3fb61f0d69", "streamId": "47d8fd9d36", "createdAt": "2024-12-31T17:17:23.699Z", "updatedAt": "2024-12-31T17:17:23.699Z", "description": null}} Branch created: fuzzy (3c4ce908af) \. @@ -648,35 +646,35 @@ COPY public.token_resource_access ("tokenId", "resourceId", "resourceType") FROM -- COPY public.token_scopes ("tokenId", "scopeName") FROM stdin; -6d4a0f4aea apps:read -6d4a0f4aea apps:write -6d4a0f4aea streams:read -6d4a0f4aea streams:write -6d4a0f4aea profile:read -6d4a0f4aea profile:email -6d4a0f4aea profile:delete -6d4a0f4aea users:read -6d4a0f4aea server:stats -6d4a0f4aea users:email -6d4a0f4aea server:setup -6d4a0f4aea tokens:read -6d4a0f4aea tokens:write -6d4a0f4aea users:invite -6d4a0f4aea workspace:create -6d4a0f4aea workspace:update -6d4a0f4aea workspace:read -6d4a0f4aea workspace:delete -6d4a0f4aea workspace:billing -d725857cc3 streams:read -d725857cc3 streams:write -d725857cc3 profile:read -d725857cc3 profile:email -d725857cc3 users:read -d725857cc3 server:stats -d725857cc3 workspace:create -d725857cc3 workspace:update -d725857cc3 workspace:read -d725857cc3 workspace:delete +d018e9f40e apps:read +d018e9f40e apps:write +d018e9f40e streams:read +d018e9f40e streams:write +d018e9f40e profile:read +d018e9f40e profile:email +d018e9f40e profile:delete +d018e9f40e users:read +d018e9f40e server:stats +d018e9f40e users:email +d018e9f40e server:setup +d018e9f40e tokens:read +d018e9f40e tokens:write +d018e9f40e users:invite +d018e9f40e workspace:create +d018e9f40e workspace:update +d018e9f40e workspace:read +d018e9f40e workspace:delete +d018e9f40e workspace:billing +314504c3d0 streams:read +314504c3d0 streams:write +314504c3d0 profile:read +314504c3d0 profile:email +314504c3d0 users:read +314504c3d0 server:stats +314504c3d0 workspace:create +314504c3d0 workspace:update +314504c3d0 workspace:read +314504c3d0 workspace:delete \. @@ -685,7 +683,7 @@ d725857cc3 workspace:delete -- COPY public.user_emails (id, email, "primary", verified, "userId", "createdAt", "updatedAt") FROM stdin; -c6c27a75d3 fuzztest@example.org t f bd195995fe 2024-12-31 15:25:51.332+00 2024-12-31 15:25:51.332+00 +fe2c9e7e8a fuzztest@example.org t f 3fb61f0d69 2024-12-31 17:15:25.903+00 2024-12-31 17:15:25.903+00 \. @@ -702,7 +700,7 @@ COPY public.user_notification_preferences ("userId", preferences) FROM stdin; -- COPY public.user_server_app_tokens ("appId", "userId", "tokenId") FROM stdin; -spklwebapp bd195995fe 6d4a0f4aea +spklwebapp 3fb61f0d69 d018e9f40e \. @@ -719,7 +717,7 @@ COPY public.user_sso_sessions ("userId", "providerId", "createdAt", "validUntil" -- COPY public.users_meta ("userId", key, value, "createdAt", "updatedAt") FROM stdin; -bd195995fe isOnboardingFinished true 2024-12-31 15:25:52.382+00 2024-12-31 15:25:52.382+00 +3fb61f0d69 isOnboardingFinished true 2024-12-31 17:15:26.963+00 2024-12-31 17:15:26.964+00 \. diff --git a/setup/fuzzer/token.txt b/setup/fuzzer/token.txt index 11189c3fdc..b9d8db4757 100644 --- a/setup/fuzzer/token.txt +++ b/setup/fuzzer/token.txt @@ -1,2 +1,2 @@ {u'app1': {}} -ApiTokenTag: d725857cc3a13391d2ac209f24e4177606bdb58a5a \ No newline at end of file +ApiTokenTag: 314504c3d01038e2013fb5b1f5d0344422168b1a70