kurtosis-tech / kurtosis

A platform for packaging and launching ephemeral backend stacks with a focus on approachability for the average developer.
https://docs.kurtosistech.com/
Apache License 2.0
353 stars 52 forks source link

Return if enclave is in production mode on enclave inspect #1363

Closed victorcolombo closed 10 months ago

victorcolombo commented 1 year ago

Background & motivation

Right now, the only viable way to know if an enclave is on production mode is by inspecting the serialized env variables. This makes it very hard to keep track what would be the behavior of this enclave if a service were to go down (especially when the enclave is long running and you forget the mode)

Desired behaviour

Return the isProduction field in CLI, web

How important is this to you?

Painful; the lack of this feature makes using Kurtosis frictionful.

victorcolombo commented 1 year ago

Current workaround:

docker container ls | grep kurtosistech/core (get container id, in this example, 9a9c03eb321f) docker container inspect 9a9c03eb321f | grep isProduction

Returns

...isProductionEnclave\":true}"
leeederek commented 1 year ago

Thanks for filing @victorcolombo - this seems like low-hanging fruit usability feature.

mieubrisse commented 1 year ago

Design: the current enclave inspect header looks like this:

Name:            icy-hill
UUID:            0a3065d658b0
Status:          RUNNING
Creation Time:   Tue, 26 Sep 2023 13:15:16 -03

I'd like to add a Flags section like so:

Name:            icy-hill
UUID:            0a3065d658b0
Status:          RUNNING
Creation Time:   Tue, 26 Sep 2023 13:15:16 -03
Flags:            production

The only value will be production for now, but as we add more enclave flags we'll add those here

IMPL NOTES: