How does Ziti maintains identities? If I have 50 servers running with the same identity and get deployed weekly, after a month would I have 200 identities whereas only 50 are valid? Are there any provisions in Ziti to clean up identities in some way?
At the moment, I don’t know of any “automatic expiration” of identities. We have talked about adding that sort of feature, but I don’t think we have due to no demand yet to do so.
Since you can create an identity, you can also delete them. Right now you’ll probably have to maintain this yourself with some sort of cleanup routine in your automation.
Is there any attribute in DB I can refer to, to find out when was the identity registered? or any “last established session” timestamp based on which I can write some automation to remove stale identities?
Hrmm. I don't think we have an "enrolled at" (registered) date. That might be an interesting thing to track. If it's out there, I didn't find the right API that would track it yet. If I discover it I'll post back