>Is it possible for the owner to pull the keys out or can only AWS or Intel do that?
AWS themselves cannot pull the mint keys out. Only a human or bot holding a private key the sig of which has been designated in the enclave code can. Basically the enclave will only allow to happen what its runtime code allows to happen, and any change to the runtime code will result in an attestation fail. So you can be sure the code is what it is.
> If the owner can pull them out and the mint self-destructs, how is this different to what is possible today? With "self-destruct", I assume you mean the mint is no longer available for any operation, including melt.
The mint doesn't actually have to self destruct. It will only do so if its code says it has to self-destruct if the keys are exported. But if it's possible for a human being to know the mint keys then attested query returns from the database of the mint in the enclave are no longer of value at best, and misleading at worst, so what's the point of it being in the enclave?
But also the owner of the AWS enclave can also just delete the enclave anytime, so whether it does or does not self destruct on a given event is besides the point, it can vanish anytime regardless. And this doesn't touch upon the lightning reserve backing the mint, which is another story.
>Or Is this only about resisting inflation, but not rugpulls?
Neither, it's actually about insurance. In other words, the value for this isn't in making things un-ruggable, it totally doesn't achieve this. The reason I started researching this is related to the topic of mint insurance, which is closer to what I'm working on in a particular B2B space.
As a mint insurer you will only insure a mint the liabilities of which you are sure of. If the mint operator rugs then you as the insurer can recreate the mint and database (this comes down to the smart contract and how it interacts with the AWS enclave) and make whole the token holders.
So a prospective mint operator who wants his or her mint to be insured must spin up an enclaved mint as per the mint insurer's spec. (It can be on the operator's own AWS infra, that's fine, but it has to be one for which the keys are birthed inside). If the owner pulls the keys then the mint can live on, but this will terminate the insurance coverage since the insurer can no longer be sure of the mint's liabilities. So it's actually the insurance coverage that self destructs in my case, not the mint.