Skip to content

Changing the configured CA file temporarily reuses the previous trust material #6095

Closed

Description

@Afloat16

Problem

upstreamCaIdentity throttles all configured-file lookups for 30 seconds even after the selected path changes. The new path reuses the old dispatcher identity and merged roots, including a prior missing-file result.

Reproduction

At master 541cf26, pin time, load CA file A, then switch BILI_CA_FILE to B without resetting the module. Both an existing A and a missing A retain their identity instead of immediately using B. The base produces 11 passed / 2 failed.

Expected

Throttle mtime probes only when the configured path matches the cached identity. Path changes refresh immediately. Same-path edits retain the existing 30-second rotation behavior and built-in roots are still merged.

Prior work

Screened all 3,221 cached upstream PRs. #3786 introduced the trust-file cache; open #4417 adds TLS forensics and certificate logging. Neither invalidates the identity when the configured path changes. Previous Afloat16 PRs #6046–#6055 are excluded.

Activity

  1. ranxianglei commented on Nov 12, 2026

    @ranxianglei
    Owner

    Fixed in batch PR #6439 (merged).

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions