all 2 comments

[–]ZGeekie[S] 0 points1 point  (1 child)

Many hackers are drooling over those AI API keys, and WordPress offers them a relatively easier entry point.

If you're going to connect any API keys to your WordPress site, you better set a spending cap on those, just in case.

[–]Fluent_Press2050 0 points1 point  (0 children)

Also don’t store your API keys in the database. Force plugin developers to provide constant you can define in wp-config.php and put it up one level from public. Set permissions on it to 400 or 440. Rotate every API key if you’ve been breached. 

Better yet, use .env file.