Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update default API port for dev, test and Docker build (#2166)
Leendert de Borst620c4f57c6c3
diff --git a/.github/workflows/e2e-tests-android.yml b/.github/workflows/e2e-tests-android.ymlindex 23de0dded..f4f5fbf84 100644--- a/.github/workflows/e2e-tests-android.yml+++ b/.github/workflows/e2e-tests-android.yml@@ -124,7 +124,7 @@ jobs:# Wait for API to be readyecho "Waiting for API to start..."for i in {1..30}; do- if curl -s http://localhost:5092/v1/ > /dev/null 2>&1; then+ if curl -s http://localhost:5100/v1/ > /dev/null 2>&1; thenecho "API is ready!"breakfi@@ -139,7 +139,7 @@ jobs:ADMIN_PASSWORD_HASH: "AQAAAAIAAYagAAAAEKWfKfa2gh9Z72vjAlnNP1xlME7FsunRznzyrfqFte40FToufRwa3kX8wwDwnEXZag=="ADMIN_PASSWORD_GENERATED: "2024-01-01T00:00:00Z"# Bind to all interfaces (IPv4 and IPv6)- ASPNETCORE_URLS: "http://0.0.0.0:5092"+ ASPNETCORE_URLS: "http://0.0.0.0:5100"- name: Enable KVMrun: |@@ -204,7 +204,7 @@ jobs:adb shell input keyevent 82 # Unlock screen# Set up port forwarding so emulator can reach host's API server and Metro bundler- adb reverse tcp:5092 tcp:5092 # API server+ adb reverse tcp:5100 tcp:5100 # API serveradb reverse tcp:8081 tcp:8081 # Metro bundler# Build and install the debug APK@@ -212,9 +212,9 @@ jobs:adb install -r app/build/outputs/apk/debug/app-debug.apk# Run the instrumented tests- ./gradlew :app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.API_URL=http://10.0.2.2:5092 --stacktrace+ ./gradlew :app:connectedDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.API_URL=http://10.0.2.2:5100 --stacktraceenv:- API_URL: "http://10.0.2.2:5092"+ API_URL: "http://10.0.2.2:5100"ANDROID_NDK_HOME: ${{ env.ANDROID_SDK_ROOT }}/ndk/26.1.10909125- name: Upload test resultsdiff --git a/.github/workflows/e2e-tests-browser-extension.yml b/.github/workflows/e2e-tests-browser-extension.ymlindex 6f9acf31b..07e617767 100644--- a/.github/workflows/e2e-tests-browser-extension.yml+++ b/.github/workflows/e2e-tests-browser-extension.yml@@ -146,7 +146,7 @@ jobs:# Wait for API to be readyecho "Waiting for API to start..."for i in {1..30}; do- if curl -s http://localhost:5092/v1/Auth/status > /dev/null 2>&1; then+ if curl -s http://localhost:5100/v1/Auth/status > /dev/null 2>&1; thenecho "API is ready!"breakfi@@ -177,7 +177,7 @@ jobs:max_attempts: 3command: cd apps/browser-extension && xvfb-run --auto-servernum npm run test:e2e:buildenv:- ALIASVAULT_API_URL: "http://localhost:5092"+ ALIASVAULT_API_URL: "http://localhost:5100"- name: Upload Playwright reportif: always()diff --git a/.github/workflows/e2e-tests-ios.yml b/.github/workflows/e2e-tests-ios.ymlindex 4cc4f8a42..ec0f8c5bd 100644--- a/.github/workflows/e2e-tests-ios.yml+++ b/.github/workflows/e2e-tests-ios.yml@@ -135,7 +135,7 @@ jobs:# Wait for API to be readyecho "Waiting for API to start..."for i in {1..30}; do- if curl -s http://localhost:5092/v1/ > /dev/null 2>&1; then+ if curl -s http://localhost:5100/v1/ > /dev/null 2>&1; thenecho "API is ready!"breakfi@@ -150,7 +150,7 @@ jobs:ADMIN_PASSWORD_HASH: "AQAAAAIAAYagAAAAEKWfKfa2gh9Z72vjAlnNP1xlME7FsunRznzyrfqFte40FToufRwa3kX8wwDwnEXZag=="ADMIN_PASSWORD_GENERATED: "2024-01-01T00:00:00Z"# Bind to all interfaces (IPv4 and IPv6)- ASPNETCORE_URLS: "http://0.0.0.0:5092"+ ASPNETCORE_URLS: "http://0.0.0.0:5100"- name: Boot iOS Simulatorrun: |@@ -243,7 +243,7 @@ jobs:DEVELOPMENT_TEAM="" \IDEFileSystemSynchronizedGroupsAreEnabled=NOenv:- API_URL: "http://localhost:5092"+ API_URL: "http://localhost:5100"IDEFileSystemSynchronizedGroupsAreEnabled: NO- name: Extract attachments from xcresultdiff --git a/apps/browser-extension/src/utils/auth/SrpAuthService.ts b/apps/browser-extension/src/utils/auth/SrpAuthService.tsindex 9946dfa5c..b0d0eb40b 100644--- a/apps/browser-extension/src/utils/auth/SrpAuthService.ts+++ b/apps/browser-extension/src/utils/auth/SrpAuthService.ts@@ -322,7 +322,7 @@ export class SrpAuthService {/*** Registers a new user via the API.*- * @param apiBaseUrl - The base URL of the API (e.g., 'http://localhost:5092')+ * @param apiBaseUrl - The base URL of the API (e.g., 'http://localhost:5100')* @param username - The username for the new account* @param password - The password for the new account* @returns Registration result with token on successdiff --git a/apps/browser-extension/tests/e2e/03-authentication.spec.ts b/apps/browser-extension/tests/e2e/03-authentication.spec.tsindex 020e76d0c..a77f02a80 100644--- a/apps/browser-extension/tests/e2e/03-authentication.spec.ts+++ b/apps/browser-extension/tests/e2e/03-authentication.spec.ts@@ -2,7 +2,7 @@* Category 3: Authentication Flow (Requires API)** These tests verify login/authentication works correctly.- * They require an API server to be running at localhost:5092.+ * They require an API server to be running at localhost:5100.*/import { test, expect, TestClient } from '../fixtures';diff --git a/apps/browser-extension/tests/e2e/04-create-credential.spec.ts b/apps/browser-extension/tests/e2e/04-create-credential.spec.tsindex 2da879c78..c00e099dc 100644--- a/apps/browser-extension/tests/e2e/04-create-credential.spec.ts+++ b/apps/browser-extension/tests/e2e/04-create-credential.spec.ts@@ -2,7 +2,7 @@* Category 4: Create Credential (Requires API + Authentication)** These tests verify credential creation functionality after login.- * They require an API server to be running at localhost:5092.+ * They require an API server to be running at localhost:5100.*/import { test, expect, TestClient } from '../fixtures';diff --git a/apps/browser-extension/tests/fixtures/fixtures.ts b/apps/browser-extension/tests/fixtures/fixtures.tsindex 379bba1fe..0bae84782 100644--- a/apps/browser-extension/tests/fixtures/fixtures.ts+++ b/apps/browser-extension/tests/fixtures/fixtures.ts@@ -16,7 +16,7 @@ const EXTENSION_PATH = path.join(__dirname, '..', '..', 'dist', 'chrome-mv3');/*** Default API URL for local development.*/-const DEFAULT_API_URL = process.env.ALIASVAULT_API_URL || 'http://localhost:5092';+const DEFAULT_API_URL = process.env.ALIASVAULT_API_URL || 'http://localhost:5100';/*** Test-scoped fixtures (created per test file/describe block).diff --git a/apps/browser-extension/tests/global-setup.ts b/apps/browser-extension/tests/global-setup.tsindex f4dce6f99..86324ffd6 100644--- a/apps/browser-extension/tests/global-setup.ts+++ b/apps/browser-extension/tests/global-setup.ts@@ -9,7 +9,7 @@ import { isApiAvailable } from './helpers/test-api';/*** Default API URL for local development.*/-const DEFAULT_API_URL = process.env.ALIASVAULT_API_URL || 'http://localhost:5092';+const DEFAULT_API_URL = process.env.ALIASVAULT_API_URL || 'http://localhost:5100';/*** Set a server setting via the DEBUG-only test controller.diff --git a/apps/browser-extension/tests/helpers/test-api.ts b/apps/browser-extension/tests/helpers/test-api.tsindex 2a216bae4..04436e019 100644--- a/apps/browser-extension/tests/helpers/test-api.ts+++ b/apps/browser-extension/tests/helpers/test-api.ts@@ -349,7 +349,7 @@ async function uploadInitialVault(/*** Registers a new test user via the API using SRP protocol and initializes their vault.*- * @param apiBaseUrl - The base URL of the API (e.g., 'http://localhost:5092')+ * @param apiBaseUrl - The base URL of the API (e.g., 'http://localhost:5100')* @param username - The username for the new account* @param password - The password for the new account* @returns The token model on successdiff --git a/apps/mobile-app/android/app/src/androidTest/java/net/aliasvault/app/TestConfiguration.kt b/apps/mobile-app/android/app/src/androidTest/java/net/aliasvault/app/TestConfiguration.ktindex 5f2ff766e..eef44d59b 100644--- a/apps/mobile-app/android/app/src/androidTest/java/net/aliasvault/app/TestConfiguration.kt+++ b/apps/mobile-app/android/app/src/androidTest/java/net/aliasvault/app/TestConfiguration.kt@@ -9,7 +9,7 @@ object TestConfiguration {* Can be overridden by setting the API_URL instrumentation argument.*/val apiUrl: String- get() = System.getProperty("API_URL") ?: "http://10.0.2.2:5092"+ get() = System.getProperty("API_URL") ?: "http://10.0.2.2:5100"/*** Generate a unique name for test items.diff --git a/apps/mobile-app/ios/AliasVaultUITests/AliasVaultUITests.swift b/apps/mobile-app/ios/AliasVaultUITests/AliasVaultUITests.swiftindex 05e971e9b..68022c7bb 100644--- a/apps/mobile-app/ios/AliasVaultUITests/AliasVaultUITests.swift+++ b/apps/mobile-app/ios/AliasVaultUITests/AliasVaultUITests.swift@@ -861,7 +861,7 @@ final class AliasVaultUITests: XCTestCase {@MainActorprivate func performLogin(with testUser: TestUser) {// Check if API URL is already configured to localhost by looking at the displayed URL- // The login screen shows the URL via server-url-link, containing text like "localhost:5092" or "aliasvault.net"+ // The login screen shows the URL via server-url-link, containing text like "localhost:5100" or "aliasvault.net"let serverUrlLink = app.findElement(testID: "server-url-link")var needsApiConfig = truediff --git a/apps/mobile-app/ios/AliasVaultUITests/TestConfiguration.swift b/apps/mobile-app/ios/AliasVaultUITests/TestConfiguration.swiftindex 293ff11f6..7b76561f2 100644--- a/apps/mobile-app/ios/AliasVaultUITests/TestConfiguration.swift+++ b/apps/mobile-app/ios/AliasVaultUITests/TestConfiguration.swift@@ -4,7 +4,7 @@ import Foundationenum TestConfiguration {/// API URL for testing (defaults to local development server)static var apiUrl: String {- return ProcessInfo.processInfo.environment["API_URL"] ?? "http://localhost:5092"+ return ProcessInfo.processInfo.environment["API_URL"] ?? "http://localhost:5100"}/// Generate a unique name for test itemsdiff --git a/apps/mobile-app/ios/AliasVaultUITests/TestUserRegistration.swift b/apps/mobile-app/ios/AliasVaultUITests/TestUserRegistration.swiftindex 334913325..113c2a91d 100644--- a/apps/mobile-app/ios/AliasVaultUITests/TestUserRegistration.swift+++ b/apps/mobile-app/ios/AliasVaultUITests/TestUserRegistration.swift@@ -48,7 +48,7 @@ enum TestUserRegistration {/// API URL for testing (defaults to local development server)static var apiUrl: String {- return ProcessInfo.processInfo.environment["API_URL"] ?? "http://localhost:5092"+ return ProcessInfo.processInfo.environment["API_URL"] ?? "http://localhost:5100"}// MARK: - Username/Password Generationdiff --git a/apps/server/AliasVault.Admin/Properties/launchSettings.json b/apps/server/AliasVault.Admin/Properties/launchSettings.jsonindex 594c69013..bf08db70f 100644--- a/apps/server/AliasVault.Admin/Properties/launchSettings.json+++ b/apps/server/AliasVault.Admin/Properties/launchSettings.json@@ -13,7 +13,7 @@"commandName": "Project","dotnetRunMessages": true,"launchBrowser": true,- "applicationUrl": "http://localhost:5216",+ "applicationUrl": "http://localhost:5102","environmentVariables": {"ASPNETCORE_ENVIRONMENT": "Development","ADMIN_PASSWORD_HASH": "AQAAAAIAAYagAAAAEKWfKfa2gh9Z72vjAlnNP1xlME7FsunRznzyrfqFte40FToufRwa3kX8wwDwnEXZag==",@@ -26,7 +26,7 @@"commandName": "Project","dotnetRunMessages": true,"launchBrowser": true,- "applicationUrl": "https://localhost:7025;http://localhost:5216",+ "applicationUrl": "https://localhost:7025;http://localhost:5102","environmentVariables": {"ASPNETCORE_ENVIRONMENT": "Development","ADMIN_PASSWORD_HASH": "AQAAAAIAAYagAAAAEKWfKfa2gh9Z72vjAlnNP1xlME7FsunRznzyrfqFte40FToufRwa3kX8wwDwnEXZag==",diff --git a/apps/server/AliasVault.Api/Properties/launchSettings.json b/apps/server/AliasVault.Api/Properties/launchSettings.jsonindex 43999ba22..aab5e2550 100644--- a/apps/server/AliasVault.Api/Properties/launchSettings.json+++ b/apps/server/AliasVault.Api/Properties/launchSettings.json@@ -15,7 +15,7 @@"MAX_UPLOAD_SIZE_MB": "100"},"dotnetRunMessages": true,- "applicationUrl": "http://0.0.0.0:5092"+ "applicationUrl": "http://0.0.0.0:5100"},"https": {"commandName": "Project",diff --git a/apps/server/AliasVault.Client/Properties/launchSettings.json b/apps/server/AliasVault.Client/Properties/launchSettings.jsonindex 814836586..46aa284c9 100644--- a/apps/server/AliasVault.Client/Properties/launchSettings.json+++ b/apps/server/AliasVault.Client/Properties/launchSettings.json@@ -14,7 +14,7 @@"dotnetRunMessages": true,"launchBrowser": true,"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",- "applicationUrl": "http://localhost:5067",+ "applicationUrl": "http://localhost:5101","environmentVariables": {"DOTNET_MODIFIABLE_ASSEMBLIES": "debug","ASPNETCORE_ENVIRONMENT": "Development"@@ -25,7 +25,7 @@"dotnetRunMessages": true,"launchBrowser": true,"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",- "applicationUrl": "http://localhost:5067",+ "applicationUrl": "http://localhost:5101","environmentVariables": {"ASPNETCORE_ENVIRONMENT": "Release"}diff --git a/apps/server/AliasVault.Client/entrypoint.sh b/apps/server/AliasVault.Client/entrypoint.shindex cd740c802..9bd6bd324 100755--- a/apps/server/AliasVault.Client/entrypoint.sh+++ b/apps/server/AliasVault.Client/entrypoint.sh@@ -29,7 +29,7 @@ fi# Remove the default API URL as it's only used for local dev/debugging.# The app will use a relative URL instead (base url + "/api/" which is the default for the Docker setup).-sed -i "s|\"ApiUrl\": \"http://localhost:5092\",||g" /usr/share/nginx/html/appsettings.json+sed -i "s|\"ApiUrl\": \"http://localhost:5100\",||g" /usr/share/nginx/html/appsettings.json# Handle empty PRIVATE_EMAIL_DOMAINS by defaulting to empty arrayif [ -z "$PRIVATE_EMAIL_DOMAINS" ]; thendiff --git a/apps/server/AliasVault.Client/wwwroot/appsettings.json b/apps/server/AliasVault.Client/wwwroot/appsettings.jsonindex 906027f4c..ad62722be 100644--- a/apps/server/AliasVault.Client/wwwroot/appsettings.json+++ b/apps/server/AliasVault.Client/wwwroot/appsettings.json@@ -1,5 +1,5 @@{- "ApiUrl": "http://localhost:5092",+ "ApiUrl": "http://localhost:5100","PrivateEmailDomains": ["example.tld", "example2.tld", "aliasvault.net", "disabled.tld"],"HiddenPrivateEmailDomains": ["disabled.tld"],"SupportEmail": "[email protected]",diff --git a/docs/misc/dev/mobile-apps/ios/e2e-testing.md b/docs/misc/dev/mobile-apps/ios/e2e-testing.mdindex 43149839d..edb3895aa 100644--- a/docs/misc/dev/mobile-apps/ios/e2e-testing.md+++ b/docs/misc/dev/mobile-apps/ios/e2e-testing.md@@ -23,7 +23,7 @@ The iOS app has two test targets:- iOS Simulator configured- Node.js 20+- CocoaPods dependencies installed (`cd apps/mobile-app && npx pod-install`)-- For UI tests: connect to your local API dev instance (by default `http://localhost:5100` when started via `./scripts/dev.sh api`, or `http://localhost:5092` when running the API project directly)+- For UI tests: connect to your local API dev instance (by default `http://localhost:5100`)## Running Tests@@ -97,11 +97,10 @@ xcodebuild test \#### With Custom API URL (for UI tests)-Point `API_URL` at your API dev instance (by default `5100` when started via-`./scripts/dev.sh api`, or `5092` when running the API project directly):+Point `API_URL` at your API dev instance (by default `5100`):```bash-API_URL="http://your-server:5092" xcodebuild test \+API_URL="http://your-server:5100" xcodebuild test \-workspace AliasVault.xcworkspace \-scheme AliasVault \-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \