microsoft / microsoft/vscode-spring-boot-dashboard

Add support for Spring Cloud Config Server with username and password

Open
#370 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged enhancement
Dominant language
TypeScript
Stars
73
Forks
38
Avg merge
3d 5h
Merged PRs (30d)
15

Description

Currently, the VSCode Spring Boot Dashboard supports fetching configuration from an external Spring Cloud Config Server via SPRING_CLOUD_CONFIG_URI. However, it does not support providing authentication credentials.

It would be very useful if the dashboard could also:

  • Allow specifying a username and password for the external Config Server in the dashboard settings.
  • Read credentials from the environment variables SPRING_CLOUD_CONFIG_USERNAME and SPRING_CLOUD_CONFIG_PASSWORD, similar to how it currently reads SPRING_CLOUD_CONFIG_URI.

Use case:

  • Define SPRING_CLOUD_CONFIG_URI environment variable pointing to External Config Server with basic authentication.
  • Opening VScode, Spring Boot Dashboard tries to fetch the configuration of Spring Boot apps.
  • It fails because it does not read SPRING_CLOUD_CONFIG_USERNAME and SPRING_CLOUD_CONFIG_PASSWORD.

Expected behavior:

Applications launched from the dashboard should successfully retrieve configuration from a secured Config Server, using either explicit settings in the dashboard or the standard environment variables.

output.log

console.log

Thank you!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the dashboard currently reads SPRING_CLOUD_CONFIG_URI and passes it to applications, then review the dashboard settings path for configuration values. Done means username and password can be supplied through dashboard settings or SPRING_CLOUD_CONFIG_USERNAME and SPRING_CLOUD_CONFIG_PASSWORD, allowing secured Config Server configuration to be retrieved.

Written by the indexing model from the issue text.

Assessment

Tech stack
spring, spring-boot, typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.