From 116ea3f759c391c49bbc2bda95f61f34a77faa90 Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Mon, 11 May 2026 18:49:01 +0300 Subject: [PATCH 1/6] feat: add beyond as submodule --- .gitmodules | 4 ++++ beyond | 1 + 2 files changed, 5 insertions(+) create mode 100644 .gitmodules create mode 160000 beyond diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000000..95bdeb0db5f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "beyond"] + path = beyond + url = ../beyond + branch = main diff --git a/beyond b/beyond new file mode 160000 index 00000000000..d9b84dc8c61 --- /dev/null +++ b/beyond @@ -0,0 +1 @@ +Subproject commit d9b84dc8c612bb07b13f5274f380626c7315c6a6 From 70457f2b2d75093f5fbfcb200b4b7006d604cf86 Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Mon, 11 May 2026 19:27:11 +0300 Subject: [PATCH 2/6] feat: auto-checkout the submodules on devcontainers --- .devcontainer/scripts/init-cli.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.devcontainer/scripts/init-cli.sh b/.devcontainer/scripts/init-cli.sh index ea42708e355..dbf916deeca 100755 --- a/.devcontainer/scripts/init-cli.sh +++ b/.devcontainer/scripts/init-cli.sh @@ -18,3 +18,9 @@ cargo build --release popd source .devcontainer/scripts/config-cli.sh + +if git submodule update --init --recursive; then + echo "Submodules are successfully loaded and available in the workspace" +else + echo "Failed to init submodules, they won't be available in the workspace" +fi From 0ef4058f5ea9a4f6fb7d2c0d322da66477d6bf91 Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Mon, 11 May 2026 19:34:47 +0300 Subject: [PATCH 3/6] feat: ask private repo permissions in devcontainer --- .devcontainer/devcontainer.json | 230 +++++++++++++++----------------- .gitmodules | 1 + 2 files changed, 108 insertions(+), 123 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 71d7c632d0f..d7dae144cd8 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,128 +3,112 @@ // SPDX-License-Identifier: AGPL-3.0-only { - "name": "step", - "dockerComposeFile": "docker-compose.yml", - "service": "devcontainer", - "forwardPorts": [ - "minio-proxy:9002", - "minio:9001", - "minio:9000", - "keycloak:8090", - "keycloak-nginx:8443", - "hasura:8080", - "vault:8200", - "vault:8201", - "immudb:3322", - "immudb:3324", - "immudb:3325", - "rabbitmq:5672", - "rabbitmq:15672", - "b3:50051", - "simplesamlphp:8083" - ], - - // Fixes usage of LOCAL_WORKSPACE_FOLDER. See: - // https://github.com/microsoft/vscode-remote-release/issues/6844#issuecomment-1252288457 - "initializeCommand": [ - ".devcontainer/scripts/initialize-command.sh" - ], - // Use this environment variable if you need to bind mount your local source - // code into a new container - "remoteEnv": { - "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" - }, - - // Mount claude code config from developer folder (if existing) to ensure - // config and credentials work well - "mounts": [ - "source=${localEnv:HOME}/.config/claude,target=/home/vscode/.config/claude,type=bind,consistency=cached" - ], - - "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", - - "userEnvProbe": "loginShell", - "updateRemoteUserUID": true, - - "onCreateCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/fix-vscode-settings-nix.sh'", - "updateContentCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/fix-vscode-settings-nix.sh'", - "postCreateCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/init-cli.sh'", - - // Adding host requirements so that there is no need to manually select the - // machine to run on all the time - "hostRequirements": { - "storage": "40gb", - "cpus": 4 - }, - - "features": { - "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, - "ghcr.io/devcontainers/features/sshd:1": { - "version": "latest" + "name": "step", + "dockerComposeFile": "docker-compose.yml", + "service": "devcontainer", + "forwardPorts": [ + "minio-proxy:9002", + "minio:9001", + "minio:9000", + "keycloak:8090", + "keycloak-nginx:8443", + "hasura:8080", + "vault:8200", + "vault:8201", + "immudb:3322", + "immudb:3324", + "immudb:3325", + "rabbitmq:5672", + "rabbitmq:15672", + "b3:50051", + "simplesamlphp:8083" + ], + // Fixes usage of LOCAL_WORKSPACE_FOLDER. See: + // https://github.com/microsoft/vscode-remote-release/issues/6844#issuecomment-1252288457 + "initializeCommand": [ + ".devcontainer/scripts/initialize-command.sh" + ], + // Use this environment variable if you need to bind mount your local source + // code into a new container + "remoteEnv": { + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" + }, + // Mount claude code config from developer folder (if existing) to ensure + // config and credentials work well + "mounts": [ + "source=${localEnv:HOME}/.config/claude,target=/home/vscode/.config/claude,type=bind,consistency=cached" + ], + "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", + "userEnvProbe": "loginShell", + "updateRemoteUserUID": true, + "onCreateCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/fix-vscode-settings-nix.sh'", + "updateContentCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/fix-vscode-settings-nix.sh'", + "postCreateCommand": "direnv allow && devenv shell bash -- -c './.devcontainer/scripts/init-cli.sh'", + // Adding host requirements so that there is no need to manually select the + // machine to run on all the time + "hostRequirements": { + "storage": "40gb", + "cpus": 4 + }, + "features": { + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}, + "ghcr.io/devcontainers/features/sshd:1": { + "version": "latest" + } + }, + "customizations": { + "vscode": { + "extensions": [ + // run commands on save + // https://marketplace.visualstudio.com/items?itemName=fsevenm.run-it-on + "fsevenm.run-it-on", + // Docker for Visual Studio Code + "ms-azuretools.vscode-docker", + // select nix environment + "arrterian.nix-env-selector", + // Nix language support + "jnoortheen.nix-ide", + // Rust language support + "rust-lang.rust-analyzer", + // Markdown support and previsualization + "yzhang.markdown-all-in-one", + // Toml support + "tamasfe.even-better-toml", + // SQL formatter, useful for .sql files in hasura + "adpyke.vscode-sql-formatter", + // Debugging + "vadimcn.vscode-lldb", + // Allows to use Alt+Q (or Option+Q in mac) to rewrap lines + "stkb.rewrap", + // Mermaid support in markdown + "bierner.markdown-mermaid", + // For Keycloak SPIs + "vscjava.vscode-java-pack", + // To support multiple settings file and merge them, so that our + // fworkaround to support rust analyzer works fine + "swellaby.workspace-config-plus", + // Git blame support on hover of a line + "eamodio.gitlens", + // HTML preview + "george-alisson.html-preview-vscode", + // Python + "ms-python.python", + // Useful to check interactions with keyloak´s DB or other SQL databases + "cweijan.vscode-database-client2", + // Rewarp lines with Alt+Q or Cmd+Q + "stkb.rewrap", + ] + }, + "codespaces": { + "repositories": { + // Allow checking out private submodules + "sequentech/beyond": { + "contents": "read" } - }, - "customizations": { - "vscode": { - "extensions": [ - // run commands on save - // https://marketplace.visualstudio.com/items?itemName=fsevenm.run-it-on - "fsevenm.run-it-on", - - // Docker for Visual Studio Code - "ms-azuretools.vscode-docker", - - // select nix environment - "arrterian.nix-env-selector", - - // Nix language support - "jnoortheen.nix-ide", - - // Rust language support - "rust-lang.rust-analyzer", - - // Markdown support and previsualization - "yzhang.markdown-all-in-one", - - // Toml support - "tamasfe.even-better-toml", - - // SQL formatter, useful for .sql files in hasura - "adpyke.vscode-sql-formatter", - - // Debugging - "vadimcn.vscode-lldb", - - // Allows to use Alt+Q (or Option+Q in mac) to rewrap lines - "stkb.rewrap", - - // Mermaid support in markdown - "bierner.markdown-mermaid", - - // For Keycloak SPIs - "vscjava.vscode-java-pack", - - // To support multiple settings file and merge them, so that our - // fworkaround to support rust analyzer works fine - "swellaby.workspace-config-plus", - - // Git blame support on hover of a line - "eamodio.gitlens", - - // HTML preview - "george-alisson.html-preview-vscode", - - // Python - "ms-python.python", - - // Useful to check interactions with keyloak´s DB or other SQL databases - "cweijan.vscode-database-client2", - - // Rewarp lines with Alt+Q or Cmd+Q - "stkb.rewrap", - ] - }, - "devpod": { - "prebuildRepository": "ghcr.io/sequentech/step" - } - } + } + }, + "devpod": { + "prebuildRepository": "ghcr.io/sequentech/step" + } + } } diff --git a/.gitmodules b/.gitmodules index 95bdeb0db5f..cdb93b2f637 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,4 @@ +# Note: make sure to configure codespace access in "./.devcontainer/devcontainer.json" too [submodule "beyond"] path = beyond url = ../beyond From c38f5b77ecff931cef48713f2baf884acb143ff1 Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Mon, 11 May 2026 20:02:15 +0300 Subject: [PATCH 4/6] feat: init submodules shallow, and first in cli --- .devcontainer/scripts/init-cli.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.devcontainer/scripts/init-cli.sh b/.devcontainer/scripts/init-cli.sh index dbf916deeca..0a10e13182a 100755 --- a/.devcontainer/scripts/init-cli.sh +++ b/.devcontainer/scripts/init-cli.sh @@ -5,6 +5,13 @@ set -ex -o pipefail +if git submodule update --init --recursive --depth 1; then + echo "Submodules are successfully loaded and available in the workspace" +else + echo "Failed to init submodules, they won't be available in the workspace" +fi + + if ! grep OPENWHISK_API_HOST .devcontainer/.env &> /dev/null; then cat <> .devcontainer/.env OPENWHISK_API_HOST="http://$(docker inspect openwhisk | jq -r '.[].Config.Hostname'):3233" @@ -18,9 +25,3 @@ cargo build --release popd source .devcontainer/scripts/config-cli.sh - -if git submodule update --init --recursive; then - echo "Submodules are successfully loaded and available in the workspace" -else - echo "Failed to init submodules, they won't be available in the workspace" -fi From e94e9e66b06a692501df5ceffd15b24fb8a68494 Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Mon, 11 May 2026 20:16:27 +0300 Subject: [PATCH 5/6] chore: add license header to .gitmodules --- .gitmodules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitmodules b/.gitmodules index cdb93b2f637..819c3c18e93 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,7 @@ -# Note: make sure to configure codespace access in "./.devcontainer/devcontainer.json" too +# SPDX-FileCopyrightText: 2025 Sequent Tech Inc +# +# SPDX-License-Identifier: AGPL-3.0-only +# Note: remember to configure Codespace access in "./.devcontainer/devcontainer.json" too [submodule "beyond"] path = beyond url = ../beyond From be744220975feeba41ce89b5da3b52fd0c43c59c Mon Sep 17 00:00:00 2001 From: Enes Selim Date: Tue, 12 May 2026 15:17:27 +0300 Subject: [PATCH 6/6] chore: update beyond commit --- beyond | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beyond b/beyond index d9b84dc8c61..233834eed67 160000 --- a/beyond +++ b/beyond @@ -1 +1 @@ -Subproject commit d9b84dc8c612bb07b13f5274f380626c7315c6a6 +Subproject commit 233834eed670d73b9548cd4980aea45b91cca4c0