Skip to content

Support CA rotation in front-proxy #1308

Open

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

Activity

  1. moved this to New in kcpon Jun 20, 2022
  2. self-assigned this
    on Jun 20, 2022
  3. added this to the milestone on Jun 21, 2022
  4. moved this from New to Backlog in kcpon Oct 17, 2022
  5. removed this from the TBD milestone on Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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