Skip to content

Why not provide a global log level option? #2605

Answered by achamayou
ghost asked this question in Ideas
Discussion options

You must be logged in to vote

@svenFeng

@svenFeng today the best way to use the logger in enclave is to build with -DVERBOSE_LOGGING=ON

This limitation is deliberate, and has to do with a combination of things:

  1. Debug logging is inherently risky. INFO logging is sanitised, but DEBUG typically results in a loss of confidentiality (eg. KV access are logged as TRACE for example). It's therefore important for a production network to disallow nodes that log debug to join.
  2. During the join protocol, joiners are allowed on the basis of their mrenclave alone (ie. binary digest), assuming the attestation otherwise checks out. This means that all important configuration aspects must be set at build time.

So the result in practi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant