Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ target/
*/bin/*
*/generated/*
*.tgz
.vscode
.env
.DS_Store
quick-run/config/reference-config.yaml
Expand Down
205 changes: 205 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Sep Server: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunSepServer",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Platform Server: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunPlatformServer",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Custody Server: custody",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunCustodyServer",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Event Processing Server: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunEventProcessingServer",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Horizon Observer: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunStellarObserver",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Soroban Observer: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunStellarObserver",
"envFile": "${workspaceFolder}/.env",
"env": {
"stellar_network.rpc_url": "https://soroban-testnet.stellar.org"
}
},
{
"type": "java",
"name": "Reference Server: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunKotlinReferenceServer",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "default"
}
},
{
"type": "java",
"name": "Wallet Reference Server: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunWalletServer",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Docker - Run Dev Stack - Kafka, Postgres, SEP24 Reference UI",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunDockerDevStack",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Test Profile: default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "java",
"name": "Test Profile: default - horizon",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "default-horizon"
}
},
{
"type": "java",
"name": "Test Profile: auth-apikey-custody",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "auth-apikey-custody"
}
},
{
"type": "java",
"name": "Test Profile: auth-apikey-platform",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "auth-apikey-platform"
}
},
{
"type": "java",
"name": "Test Profile: auth-jwt-custody",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "auth-jwt-custody"
}
},
{
"type": "java",
"name": "Test Profile: auth-jwt-platform",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "auth-jwt-platform"
}
},
{
"type": "java",
"name": "Test Profile: custody",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "custody"
}
},
{
"type": "java",
"name": "Test Profile: deployment",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "deployment"
}
},
{
"type": "java",
"name": "Test Profile: host.docker.internal",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"console": "internalConsole",
"internalConsoleOptions": "openOnSessionStart"
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing TEST_PROFILE_NAME environment variable in launch configuration

Medium Severity

The "Test Profile: host.docker.internal" launch configuration doesn't set the TEST_PROFILE_NAME environment variable. Unlike other test profile configurations (e.g., "default-horizon", "custody") that explicitly set TEST_PROFILE_NAME in their env block, this configuration is missing it entirely. Without TEST_PROFILE_NAME set to host-docker-internal, the configuration will run the default profile instead of the intended host-docker-internal profile, causing unexpected behavior for developers who expect the configuration name to match the actual test profile being executed.

Fix in Cursor Fix in Web

{
"type": "java",
"name": "Test Profile: kafka-sasl-ssl",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "kafka-sasl-ssl"
}
},
{
"type": "java",
"name": "Test Profile: rpc",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "rpc"
}
},
{
"type": "java",
"name": "Test Profile: soroban-rpc-default",
"request": "launch",
"mainClass": "org.stellar.anchor.platform.run_profiles.RunTestProfile",
"envFile": "${workspaceFolder}/.env",
"env": {
"TEST_PROFILE_NAME": "soroban-rpc-default"
}
}
]
}
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"java.debug.settings.enableRunDebugCodeLens": true,
"java.debug.settings.hotCodeReplace": "auto",
"java.debug.settings.vmArgs": "",
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.runtimes": [],
"java.jdt.ls.java.home": "",
"java.import.gradle.enabled": true,
"java.import.gradle.wrapper.enabled": true
}
Empty file added .vscode/tasks.json
Empty file.
Empty file modified scripts/docker-start.sh
100644 → 100755
Empty file.

This file was deleted.

Loading
Loading