Hacker News new | ask | show | jobs
by shepherdjerred 44 days ago
In this case you'd probably prefer your key to be disabled rather than spending $$$ on tokens for everyone else
1 comments

Think that through - the person who stole the key has the decision to use it or revoke it through this hypothetical system.

If they are acting maliciously, they will take the choice that most hurts you and/or benefits them.

If the key is useless to them and revoking it hurts you, then they would do that.

If the key wasn’t useless to them, then… they would just use it and not revoke it?

It for whitehat third parties who discover unprotected keys obviously people intentionally stealing keys will not revoke them generally.
And the whitehack hackers finding keys should do what, exactly?

Unilaterally decide they should be revoked, without contacting the owner?

And that’s not malicious?

Given they found a secret key in a public place? No that’s not malicious and it would be odd for a serious organisation to be upset someone immediately invalidated it.
Are you really unable to imagine a situation where financial or physical harm is caused by a system abruptly being shut down by a credential revocation, triggered by a random person on the internet?

Be serious.

Other options available: ruin the company financially, violate the terms of service of whatever system it uses and get the organisation banned, access business/customer data.

If it’s that sensitive and there’s access keys accessible to anyone, it could end up much worse. Nobody said it was without inconvenience.

Is that system made by a supervillain or a mad scientist? But such system can go amok for any reason. Anyway revocation is already possible by publication on github, telling to GPT or sending an email to webmaster.
What exactly are you advocating for
Read the thread?

> I think every API key system should have endpoint "invalidate_api_key"

Not this.

Yes, so you are against the proposed idea.

What is your alternative idea?

No idea why you’re being so hostile here.