Skip to content

Add DynamicSecretConfig information in config_dump endpoint #7111

Closed

Description

@incfly

Title: Better Secrets Config Dump for SDS

Description

We lack debugging information about secrets (specifically key/cert) that is fetched by SDS.

What we have today

  • :<admin_port>/config_dump prints out the listener/cluster/etc, where SDS configuration is inlined.
  • :<admin_port>/certs prints out all the certificates from the ContextManager.

What we want

  • Something similar to admin.v2alpha.ListenersConfigDump.DynamicListener, we can have a
    admin.v2apha.SecretsConfigDump.DynamicSecrets (name made up)
  • It shows last_updated, version_info,(these two fields are helpful for debugging) SDS configuration.
  • /config_dump prints out a separate section about the dynamic_listener, and we have one entry per resource name.
  • (optional) add a field for different type of secrets, prints out their relevant information. E.G cert prints out the SAN TTL.

Alternative

I considered a separate /secretes, but that does not seem suitable given what 'clusters' 'listeners' are all about the stats.

Activity

  1. incfly commented on May 30, 2019

    @incfly
    ContributorAuthor
  2. mattklein123 commented on May 31, 2019

    @mattklein123
    Member

    +1 this sounds great.

  3. added
    enhancement
    help wanted
    on May 31, 2019
  4. JimmyCYJ commented on Jun 5, 2019

    @JimmyCYJ
    Member

    Per discussion with @PiotrSikora we will file a separate issue for /certs to add annotations or something similar to make it clear the type of each cert (static, inline, SDS). Perhaps it would be nice if we can add SDS resource name into the annotation, so that we can associate /certs with /config_dump while debugging SDS related issues.

  5. incfly commented on Jun 7, 2019

    @incfly
    ContributorAuthor

    @mattklein123 Could you assign this to me and @JimmyCYJ ? We've sync-ed with @PiotrSikora about this and plan to work on it as part of improving SDS debug-ability in general.

  6. added
    no stalebot
    and removed
    help wanted
    on Jun 7, 2019
  7. added this to the 1.12.0 milestone on Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementno stalebot

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions