brave / nitriding-daemon

Tool kit for building secure, scalable, and networked services on top of AWS Nitro Enclaves.
Mozilla Public License 2.0
29 stars 10 forks source link

Incomplete application logs when using -appcmd #39

Open jalaziz opened 1 year ago

jalaziz commented 1 year ago

While testing nitriding with -appcmd, I noticed the the application logs were inconsistent on every run (even though the application was failing for the same reason each run). If an application dies quickly, it appears that nitriding can exit before all the application logs are printed.

Looking at the source code, I believe this may because stdout and stderr and streamed via a goroutine, but the routines are not waited on before nitriding exits.

rillian commented 1 year ago

Sounds plausible.