TOP(About this memo)) > Firebase Storage
〜
match /users/{userId}/profile.png {
allow read: if request.auth != null;
allow write: if request.resource.contentType == 'image/png' && request.resource.size <= 5 * 1024 * 1024 && request.auth != null && request.auth.uid == userId;
}
〜
projectViewer:PROJECT_ID
のプリンシパルに対して「Storage レガシー バケット読み取り」の権限が付与されている。
projectViewer:PROJECT_ID
は、IAM バケット ポリシーにのみ適用できる特別なプリンシパルと記載されている。https://storage.googleapis.com/(バケット名)
へアクセスしてもdeniedとなる。