Skip to content

Support CA rotation in front-proxy #1308

Open
@s-urbaniak

Description

@s-urbaniak

Currently, we load client cert/key, and root CAs at startup time but don't rotate them:

kcp/pkg/proxy/proxy.go

Lines 56 to 69 in 15cbe0f

cert, err := tls.LoadX509KeyPair(clientCert, clientKeyFile)
if err != nil {
return nil, err
}
transport := http.DefaultTransport.(*http.Transport).Clone()
transport.TLSClientConfig = &tls.Config{
Certificates: []tls.Certificate{cert},
RootCAs: caCertPool,
}
proxy := httputil.NewSingleHostReverseProxy(target)
proxy.Transport = transport
return &KCPProxy{proxy: proxy, backend: backend}, nil

I suppose rotation is done by re-deployment currently? We should rather support in-process rotation.

cc @kylape @csams

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions