Visitar URL original
feat: Add TLS support for Go Feature Server by shuchu · Pull Request #6229 · feast-dev/feast · GitHub
Skip to content
Merged
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
Prev Previous commit
fix: Fix name convertion of https_enable.
Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
  • Loading branch information
shuchu authored and SHUCHU HAN committed Apr 14, 2026
commit 03d71569dde94cd018b52d5bf46c1b7288b03cd0
6 changes: 3 additions & 3 deletions go/main.go
Comment thread
shuchu marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ func StartGrpcServer(fs *feast.FeatureStore, host string, port int, metricsPort
// StartHttpServerWithLogging starts HTTP server with enabled feature logging
// Go does not allow direct assignment to package-level functions as a way to
// mock them for tests
func StartHttpServer(fs *feast.FeatureStore, host string, port int, metricsPort int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback, loggingOpts *logging.LoggingOptions, https_enable bool, certFile string, keyFile string) error {
if https_enable && (certFile == "" || keyFile == "") {
func StartHttpServer(fs *feast.FeatureStore, host string, port int, metricsPort int, writeLoggedFeaturesCallback logging.OfflineStoreWriteCallback, loggingOpts *logging.LoggingOptions, httpsEnable bool, certFile string, keyFile string) error {
if httpsEnable && (certFile == "" || keyFile == "") {
return fmt.Errorf("--tls-cert-file and --tls-key-file must be provided for HTTPS server.")
}

Expand Down Expand Up @@ -308,7 +308,7 @@ func StartHttpServer(fs *feast.FeatureStore, host string, port int, metricsPort
}
}()

if https_enable {
if httpsEnable {
err = ser.ServeTLS(host, port, certFile, keyFile)
} else {
err = ser.Serve(host, port)
Expand Down
Loading