0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

firebaseのapiKeyは公開しても良いのか

Posted at

こういうやつ

  // Your web app's Firebase configuration
  var firebaseConfig = {
    apiKey: "168aaAABcdDeEfFggGIImMOppPRssSUvxXyYzZZ",
    authDomain: "foobar.firebaseapp.com",
    databaseURL: "https://foobar.firebaseio.com",
    projectId: "foobar",
    storageBucket: "foobar.appspot.com",
    messagingSenderId: "012233455679",
    appId: "1:012233455679:web:0011112233445677889aff",
    measurementId: "G-0099BEPSVV"
};

結論

公開されても良い

何故

適切にセキュリティルールが組まれていれば漏れても大したことは出来ない

そもそも、firebase HostingでWebサイトを公開すると /__/firebase/init.js で勝手に公開される

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?