Live data from Hacker News

Making Beautiful API Keys

docs.agentstation.ai

21–30 of 107 posts

Re: Making Beautiful API Keys

#21
I guess this is an unpopular opinion given the existing comments, but I don't get it. They spent time and energy on this instead of writing features or fixing bugs and I don't think it matters at all. The only interaction I have with my API keys is copying them from one place to another. If I need to manually identify a key then putting the first or last few chars, whatever they are, in my working memory is more than sufficient.

Re: Making Beautiful API Keys

#25

I guess this is an unpopular opinion given the existing comments, but I don't get it. They spent time and energy on this instead of writing features or fixing bugs and I don't think it matters at all. The only interaction I have with my API keys is copying them from one place to another. If I need to manually identify a key then putting the first or last few chars, whatever they are, in my working memory is more than…

I totally agree. This looks like a pretty new startup too. I would be livid if my team had spent so much time on this instead of building capabilities to get the startup traction.

Re: Making Beautiful API Keys

#26
post #15

Dashes in API keys are really annoying. Double-clicking doesn’t select the full key, which just adds extra hassle. It would be much better if they used a continuous string without any separators. Makes copying and pasting way easier, and doesn't affect security at all.

Double click and drag is your friend.

Re: Making Beautiful API Keys

#27
I use URLs as API keys, so they are self-descriptive (links to a page that tells you what it is/what service it's for) and self-revocable (there's a button, no need to post it to a GitHub repo to have them revoke it for you with their secret scanner [1]).

I bring this up a lot [2] but I do think there is value in being able to tell if something is a secret and tell where to go to revoke it if found. Most current API keys use some sort of prefix at least (AWS, SendGrid, GitHub, etc).

[1]: https://docs.github.com/en/code-security/secret-scanning/int...

[2]: https://news.ycombinator.com/item?id=28296864

Re: Making Beautiful API Keys

#28
post #15

Dashes in API keys are really annoying. Double-clicking doesn’t select the full key, which just adds extra hassle. It would be much better if they used a continuous string without any separators. Makes copying and pasting way easier, and doesn't affect security at all.

I really don't care about the aesthetics of a string but this is 100% my issue when interacting with UUIDs.

Re: Making Beautiful API Keys

#29

I guess this is an unpopular opinion given the existing comments, but I don't get it. They spent time and energy on this instead of writing features or fixing bugs and I don't think it matters at all. The only interaction I have with my API keys is copying them from one place to another. If I need to manually identify a key then putting the first or last few chars, whatever they are, in my working memory is more than…

Agreed. I cant see why anyone thinks this was worth spending time on rather than just using the standards which everybody else does.

Nobody types out api keys so there is no need to make them friendly to say or remember. After you have copied and pasted them once into your db, you are never going to seee or use that string again!

Re: Making Beautiful API Keys

#30
I really dont see the benefit of these. its just guids with extra steps. its not any easier to read than guids.

its an alphanumeric random string in both systems.

yes theres is kinda symetrical. but im not going to find it easier to communicate/remember say:

38QARV0-1ET0G6Z-2CJD9VA-2ZZAR0X

any easier than i am

d1756360-5da0-40df-9926-a76abff5601d

both are long random strings. both are awkward to have to read over say a phone call.

what am I missing here?

Post reply on HN