Closed masnax closed 1 month ago
I'm not sure how LXD handles image expiry, but I'm thinking in microcluster a good place to handle this would be when issuing a heartbeat.
There's also the matter of deciding if we want a sensible default expiration, like 10 minutes per token by default.
Join tokens exist forever after creation. Instead, we should have some mechanism to expire tokens after a user-specified period of time.
This means updating the join token configuration here to take a timeout.
There are a few nuances here like changing the schema to expect an initial creation date for tokens.