CondeNast / purgely

A WordPress plugin to manage Fastly caching behavior and purging.
24 stars 9 forks source link

Possible key values #19

Closed tollmanz closed 8 years ago

tollmanz commented 8 years ago

Do the Fastly Service ID and API Key strings only contain the following characters: a-zA-B0-9? I'm currently restricting the values to those characters and want to make sure I don't break anything.

Ping @simonwistow

simonwistow commented 8 years ago

The service id is a base62 encoded UUIDs so, yeah, you're right, it's a-zA-Z0-9.

The API key is just hex so a-fA-F0-9 if you want to be really strict but it's probably best to just check the same a-zA-Z0-9.

tollmanz commented 8 years ago

Thanks!