Skip to content

[ENH] Support TLS with self-signed certificates in ServerSession.url() #78

@tazarov

Description

@tazarov

Context

ServerSession.url() currently hardcodes http:// when constructing the server URL. This is acceptable for local embedded usage but limits security posture for deployments that need encrypted transport.

Proposal

Add optional TLS support so that ServerSession can return https:// URLs when the server is configured with a certificate. Self-signed certificates should be supported for local/dev use cases.

This would involve:

  • Rust shim: expose whether TLS is enabled on the server handle
  • Java/Go: propagate the TLS flag into url() to select http vs https
  • Optional: helper for generating self-signed certs at startup

Current behavior

// ServerSession.java
public String url() {
    return "http://" + address() + ":" + port();
}

References

  • ServerSession.java:47-49
  • Go equivalent: internal/runtime/chroma.go (Server.URL method)

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions