I recently found an issue with Airbyte that OSS de...
# give-feedback
j
I recently found an issue with Airbyte that OSS deployments using a secret manager *fail to delete secrets when sources or destinations are deleted*—despite logging that they did delete the secret! This causes secret costs to grow rapidly, and can get expensive very quickly. This bug has been around since at least 1.8.x, and I think quite a bit longer. (If my analysis is correct, it doesn’t affect Cloud or Enterprise.) The root cause is that secret coordinates are redacted before they’re used to attempt the deletion, leading to a no-op and swallowed error (and output saying the secret was deleted). I’ve created GitHub Issue #91311 and PR#452 to address this. I know that platform MRs from the community aren’t typically reviewed, but given the sometimes significant cost impact and simplicity of the fix, I’m hoping this can be an exception (CC: @Richelle Herrli @Ian Alton). (I personally just cleaned up ~$500/mo. in GSM secrets this is fine fire)
r
Hey Justin, I’m chatting about this internally. It sounds like deleting external secrets is only available for Cloud, and even then it requires the user to explicitly grant deletion permissions for Airbyte to handle it. I’m take it back to the team that you would like Airbyte to handle external secret deletion as part of your workflow and in the meantime we’ll work to remove messaging of false successes.
j
@Richelle Herrli Thanks for responding and for having these discussions—I truly appreciate it! The thing is, it already deletes old versions when credentials change—it just leaves them orphaned when sources or destinations are deleted. So it doesn’t really make sense for it to do one and not the other. And the message saying they were deleted indicates that this was not the intended functionality. So as a developer, I’m gonna kindly call BS on that line of discussion 😂 At minimum this should be made documented with clear warnings, but the default expectation is that Airbyte should always manage (including to destroy, when appropriate) its own created secrets. This makes sense from both a default compliance standpoint as well as parity with the default database storage method (which does remove these keys). I think this is especially important considering this recommendation in the docs: > Airbyte highly recommends storing connector secrets in an external secret manager to ensure secrets are not exposed. If it’s the highly recommended option, it should manage them in a sane way. Nobody is expecting Airbyte to perpetually persist a secret for a deleted actor (especially given the cost of secret management), It’s also worth noting that neither that docs page nor the official External Secrets Management Security Guide note anything about secrets not being deleted. So TLDR; if you want to have an option, that’s fine (or let users do something with permissions)—but the default should be sane secrets management, both because compliance demands it and the potentially high cost of secrets management (and risk/difficulty of manually cleaning these). (And to be clear, I adore y’all and just want to help—so I don’t want this to come across as aggressive. But as a developer I also know the developer lines and lies we tell ourselves and others, so I want to be direct with that too 😂)