Skip to content

Add an EventSource to the certificate stack #40445

Closed

Description

@davidfowl

Anywhere we save state to disk (or cert stores) or make outgoing networking calls should be logged in some form. These types of issues are very hard to debug today. Specifically:

  • Log any AIA fetches
  • Log any OCSP or CRL downloads
  • Log any certificate store saves or retrievals

cc @bartonjs @noahfalk

Activity

  1. Dotnet-GitSync-Bot commented on Aug 6, 2020

    @Dotnet-GitSync-Bot
    Collaborator

    I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

  2. added
    untriaged
    on Aug 6, 2020
  3. added this to the Future milestone on Aug 6, 2020
  4. bartonjs commented on Aug 6, 2020

    @bartonjs
    Member

    AIA/OCSP/CRL fetches are done by the OS on Windows and macOS (and, depending on newer OpenSSL features, future Linux builds).

    Similarly, Windows and macOS we have layers on top of the native stores, so lots of store-things can happen that we can't see. We could, of course, log in our wrapper methods.

    My concern is that the tracing is really only applicable on one OS.

  5. davidfowl commented on Aug 6, 2020

    @davidfowl
    MemberAuthor

    That sounds reasonable if we do nothing there. But we're doing a ton of work on Linux today and it includes swallowing exceptions in a bunch of places as well.

  6. removed
    untriaged
    on Aug 28, 2020
  7. davidfowl commented on Mar 23, 2021

    @davidfowl
    MemberAuthor

    This seems like a perfect is the enemy of good issue. Is there logging for other parts of the stack? How would I diagnose this in a production outage? Practically speaking linux is what we care about the most here, that's where we foresee most of our production workloads that need this kind of information.

  8. noahfalk commented on Mar 24, 2021

    @noahfalk
    Member

    My concern is that the tracing is really only applicable on one OS

    If we have different guidance per-OS, one of which says 'turn on this .NET provided logging' and others that say 'go refer to the OS documentation' I think that is a fine outcome. Was that your concern or something else?

  9. self-assigned this
    on May 21, 2021
  10. ghost added
    in-pr
    on Feb 24, 2022
  11. ghost removed
    in-pr
    on Mar 16, 2022
  12. ghost locked as resolved and limited conversation to collaborators on Apr 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions