Where should I store API keys and application passwords so they are not exposed on my website?

Bu içerik yalnızca Rumence ve İngilizce olarak mevcuttur; aşağıda İngilizce metin gösterilmektedir.

Where should I store API keys and application passwords so they are not exposed on my website?

Do not put secret keys in JavaScript sent to the browser, public pages or a Git repository. Visitors can read anything delivered to their browser. Keys explicitly designed for public use are different from those that authorise sensitive operations.

Store application secrets using the method recommended by your application: environment variables or configuration files outside the public directory, where your hosting environment supports this. Restrict file access and check that configuration copies or archives are not publicly accessible.

If a key is accidentally published, revoke it and generate a replacement. Deleting it from a file is not enough if it remains in Git history. Limit each key’s permissions to the operations it actually needs.

BENZER SORULAR

İlginizi çekebilecek bazı sorular ve yanıtları. Müşterilerimiz için önemli ve pratik soruları yanıtlıyoruz.

BÜLTENİMİZE ABONE OLUN

Bültenimize abone olun. Onu yalnızca önemli bilgiler için kullanıyoruz.

Bülten aboneliği illüstrasyonu