mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-04 02:21:02 +08:00
* fix: prevent deleting AWS OIDC integration used by EAS The External Audit Storage feature for Teleport Cloud depends on an AWS OIDC integration to exist in order to get credentials for the customer AWS account. It's currently possible for a customer to delete the AWS OIDC integration referenced by the EAS configuration, leading to the EAS integration breaking and the Auth service crashing the next time it's started up. This commit prevents deleting an AWS OIDC integration currently referenced by and EAS integration, and prevents creating an EAS integration referencing an unknown AWS OIDC integration. * use PreDeleteCheck instead of calling EAS service * reorder tests and add missing cleanup * create integrations svc on the fly * switch to AtomicWrite * set revision of returned resources * deprecate gRPC DeleteAllIntegrations and use more general cacheMode