Skip to content

Potential gap in TLS context for log forwarding #780

@sed-i

Description

@sed-i

Pebble makes use of golang's net/http client for TLS context.
Our charms add CA certs to the workload only on some relation changed.

@michaeldmitry discovered that:

  • For log targets, pebble loads the CA certs when we first create a log target, not when pebble starts.
  • You can't remove log targets once added (unless with a container restart).

Then we'd need to restart pebble for the TLS context to refresh, but if we do that then we lose the pod (because pebble is PID 1).

Metadata

Metadata

Assignees

No one assigned

    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