Skip to content

feat(serve): allow starting without static SAP credentials#70

Merged
devops-bda merged 1 commit into
mainfrom
worktree-bridge-cse_012F7debW8vjpVd9SrJ62mxd
Jun 4, 2026
Merged

feat(serve): allow starting without static SAP credentials#70
devops-bda merged 1 commit into
mainfrom
worktree-bridge-cse_012F7debW8vjpVd9SrJ62mxd

Conversation

@phanikumarps

Copy link
Copy Markdown
Contributor

Summary

  • serve command now starts in multi-system mode when no SAP system is configured (no systems.json active system and no SAP_HOST/SAP_USERNAME/SAP_PASSWORD env vars)
  • When credentials are absent, the server starts and accepts per-request X-SAP-* headers, matching the behaviour of abaper-ts
  • If credentials are provided (via systems.json or env vars), behaviour is unchanged — static client is authenticated at startup as before

Motivation

Enables deploying the abaper REST server to the apps node without baking in static SAP credentials, consistent with how abaper-ts is deployed in production (pure multi-system mode, credentials forwarded per-request from the gateway).

Test plan

  • abaper serve with no config/env vars — server starts, GET /health returns {"adt_status":"disconnected","status":"healthy"}
  • abaper serve with SAP_HOST/SAP_USERNAME/SAP_PASSWORD set — authenticates at startup, GET /health returns {"adt_status":"connected"}
  • abaper serve with a configured system in systems.json — same as above

🤖 Generated with Claude Code

When no system is configured in systems.json and SAP_HOST/SAP_USERNAME/
SAP_PASSWORD env vars are absent, the server now starts in multi-system
mode (credentials supplied per-request via X-SAP-* headers) instead of
refusing to start. Matches the abaper-ts behaviour, enabling deployment
without baked-in SAP credentials.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@devops-bda devops-bda merged commit caa81bd into main Jun 4, 2026
4 checks passed
@devops-bda devops-bda deleted the worktree-bridge-cse_012F7debW8vjpVd9SrJ62mxd branch June 4, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants