ref: https://www.cyberark.com/resources/threat-research-blog/securing-kubernetes-clusters-by-eliminating-risky-permissions
本篇文章是一個基礎分享文,整個主軸圍繞於 Authentication 與 Authorization 兩大塊,同時透過這兩大概念的介紹來分享一些會可能會有資安問題的設定
開頭作者探討了 Kubernetes 的架構,並且將 API Server 這個重點核心拿來出探討,提到為了存取 Kubernetes API,使用者必須要經過三個階段的處理,分別是
Authentication, Authorization 以及 Admission Control
接者用一個簡單的流程來說明上述三者的差異,假設今天有一個 Client 想要請求 API Server 幫忙創建一個 Pod 的物件。
首先 API Server 會針對該請求進行 Authentication 的檢查,通常情況下會使用 Certificate, Tokens, Basic Authentication(username/password) 來判別。
如果通過後,則會進入到 Authorization 的階段,該階段要判別發送當前 Request 的 Client 是否擁有創建 Pod 的權限,如果有權限就會把相關操作交給後續的 Admission Control 來處理。
文章中舉了一個名為 AlwaysPullImages 的 Admission Controller,該 Controller 對於一個多用戶的 Kubernetes Cluster 來說特別有用,主要是用來確保使用者 A 想要使用的 Private Image 不能被使用者 B 存取。
試想一個情況,假設今天使用者 A 順利於 NodeA 上抓取了自己的 Private Image,那使用者 B 假如很剛好知道這個 Image 的名稱,是不是有機會就可以不需要相關權限直接使用 NodeA 上的 Image?
所以這個 Admission Controller 就是用來避免這個問題的。
接者作者從 Authentication 與 Authorization 中個挑選一個方式來介紹並且講解這兩者如何結合的。
Authentication 使用的是 Service Account Token,管理會事先於 Kubernetes 內創立一個相關的 Service Account,並且把該 SA(Service Account) 的 Token 給交給 Client(Kubeconfig 也可)
Client 發送 HTTPS 請求到 API Server 的時候就可以夾帶這個 Token 的資訊,這樣 API Server 就會去檢查該 Token 是否存在於 Cluster 內。
事實上當每個 Pod 被創立後, Kubernetes 預設情況下就會將該 namespace 下的 service account 資訊給掛載到該 Pod 內的 "/var/run/secrets/kubernetes.io/serviceaccount" 這個路徑
這樣該 Pod 就可以使用該 Service Account Token 的資訊與 API Server 溝通。
Authorization 則是使用 RBAC 的方式來處理, RBAC 由三個部分組成,分別是 Role(代表可以針對 Cluster 進行什麼樣類型的操作,譬如 create pod, delete pod), Subject(你是誰,譬如 Service Account), RoleBinding(用來將 Role 與 Subject 給綁定)
管理員要創建並且管理這些叢集的話,就要好好的去設計這三個物件的關係,來確保最後的 Client 可以擁有剛剛好符合其需求的權限,千萬不要為了懶散而給予過多權限。
接者作者列舉了五種 Risky permissions 的可能情境
1. Listing secrets
大部分的應用程式開發者都會使用 secret 的物件來管理一些機密資訊,如帳號密碼,憑證等,所以一個擁有 list secrets 的 service account 其實是相對危險的。
非必要的話,不要讓管理員以外的任何使用者有這個權限,特別是使用 ClusterRole/ClusterRoleBinding 時要特別注意
2. Creating a pod with a privileged service account
假設今天有一個攻擊者已經獲得一個可以創建 pod 的 service account,那該攻擊者已經可以很順利的於叢集內創建 Pod 去進行基本操作(譬如挖礦)
如果攻擊者很巧地又知道目標 namespace 內存在一個很強的 service account,它就有辦法讓他創立的 Pod 去使用這個很強的 Service Account 並且進行更多後續操作
3. Impersonating privileged accounts
作者提到 Impersonating 這個 Role 裡面的動作要特別小心使用,擁有這個權限的使用者可以輕鬆化身為其他的使用者/群組
舉例來說,一個擁有 Impersonating -> users/group 的 serviceaccount 是沒有辦法看到任何 secrets 的物件。
但是攻擊者只要使用的時候加上 --as=null --as-group=system:master 則就會變成如 master 般的上帝擁有這些權限
因此這種權限設定上要特別小心
4. Reading a secret – brute-forcing token IDs
5. Creating privileged RoleBindings
後續兩個有興趣的可以參考全文,都是滿有趣的一些想法,值得閱讀擴展自己的認知
同時也有1591部Youtube影片,追蹤數超過40萬的網紅SLSMusic,也在其Youtube影片中提到,Enjoy classic OST from Chrono Trigger played by Taiwanese pianist SLS, including "Frog's Theme" and "Robo's Theme". Both of them were used at the Toky...
「server list」的推薦目錄:
- 關於server list 在 矽谷牛的耕田筆記 Facebook 的最佳解答
- 關於server list 在 Kewang 的資訊進化論 Facebook 的最佳貼文
- 關於server list 在 Facebook 的最讚貼文
- 關於server list 在 SLSMusic Youtube 的最讚貼文
- 關於server list 在 BlueBerries詭計星的頻道 Youtube 的最佳解答
- 關於server list 在 BlueBerries詭計星的頻道 Youtube 的最佳貼文
- 關於server list 在 Minecraft Server List | Facebook 的評價
- 關於server list 在 how openstack client get server list with accurate ip address 的評價
- 關於server list 在 List of Top Public Time Servers - gists · GitHub 的評價
server list 在 Kewang 的資訊進化論 Facebook 的最佳貼文
快來點我 👉👉👉 https://hahow.in/cr/kewang-backend 👈👈👈
大家好,小編這次籌備的新課「專為前端工程師準備的 Node.js 後端實戰課程」開始在 Hahow 好學校 上架募資啦!
在 2021/7/14 之前,在這篇文章按讚,並且公開分享這篇文章,及 tag 一位你的好朋友,除了可以用超優惠價格購買這門課程外,還有機會獲得 8 折的 coupon 喔!
---
這門課主要是從小編在這六七年來對於後端開發的集大成,以 Node.js+VS Code 做為開發環境。
會開這門課程的原因,主要是因為後端運用廣泛,但是門檻高、人才難找。而前端工程師經過了 MVVM 框架及 JavaScript 的洗禮後,再加上 Node.js 的流行,轉職到後端會比其他語言多了一層優勢。所以這門課程希望能讓已經有 JavaScript 基礎的前端工程師,也能輕鬆進入後端開發的大門。
課程內容主要是從 Express.js 開始著手,以 TODO list 做為貫穿整門課程的專案,其中可以學到許多內容,像是:
🔥 如何活用 package.json 及 dotenv 讓你快速開發
🔥 express.js 最重要的 middleware 開發及如何擴充 req/res
🔥 如何使用 Heroku 讓你快速部署網站上雲
🔥 如何使用 New Relic 來觀測網站運作狀況
其中也會教大家如何撰寫 API 文件及 RESTful API 的串接實戰,像是:
🔥 request 失敗到底要用 200 還是 400 回應
🔥 使用 mock server 快速串接 API
🔥 使用 Markdown 快速撰寫 API 文件
而資料庫則會搭配 MongoDB 及 Redis 做為快速開發使用:
🔥 MongoDB 的 schema 設計、CRUD 及最重要的 aggregate 使用方式
🔥 Redis 的 set/get 及 expire 功能簡易使用
---
這門課也有兩個募資解鎖單元,分別是「如何使用 Redis 開發 autocomplete 功能」、「如何使用 BullMQ 縮短 API 的回應時間」,歡迎大家踴躍報名這門課程,對課程有任何疑問都可以在課程網頁留言喔!
#nodejs #expressjs #javascript
server list 在 Facebook 的最讚貼文
Popular beverage brand- Instea has recently rolled out food menu in their new cafe (expanded from the Instea outlet at Maccalister Road)- Bean & Cream. The food menu has a list of Western dishes, including Big Breakfast, Pasta, Toasts etc... prices are unexpectedly high though (we were shocked to find out that the Big Breakfast is priced at Rm 45.90). But price factor was not only the surprise, we were also shocked by the service. We waited an hour to realize that one of our orders was not recorded and the server did not bother to repeat or check with us after we have placed our order. We threw the white flag and could not be bothered to argue further. The only dish we had was Couscous Stuffed Sweet Potato- the combo was fine but the Couscous was a tad too salty on its own. For Rm 26.90, we thought it was way overpriced.
Couscous Stuffed Sweet Potato- RM26.90
Green Tea- RM9.90 (hot)
Address: 218C-01-3A, No. 218, Jalan Macalister, 10400, Georgetown, Penang.
Business Hours: 11 am to 10:30 pm. Opens Daily.
More food reviews can be found on Ken Hunts Food!
server list 在 SLSMusic Youtube 的最讚貼文
Enjoy classic OST from Chrono Trigger played by Taiwanese pianist SLS, including "Frog's Theme" and "Robo's Theme". Both of them were used at the Tokyo Olympics this year.
↓ More INFO down below ↓
💬SLSTalk
Another game pieces from Tokyo Olympics Opening, which is also a classic in Japan's gaming industry, "Chrono Trigger". Frog and Robo are both important characters in the story, if you have ever played this game, you will definitely know these two soundtracks! Hope you like it!
🟧Support us on Patreon and Get Rewards!
► https://www.patreon.com/slsmusic
🎁Get MP3s, Sheet Music, Exclusive Contents, Discord Server!
📖Sheet Music
🎼https://slsmusic.gumroad.com/l/rTgaM
🎼https://www.mymusicsheet.com/slsmusic/42383
✨Synthesia Video
Patreon► https://www.patreon.com/posts/54854587/
YT Member► https://youtu.be/ZwKiNE48fps
🎧Find SLSMusic on Spotify, iTunes, Apple Music, Amazon, Deezer and more
All► https://li.sten.to/slsmusic
Spotify► http://bit.ly/SLSMusicSpotify
iTunes► http://bit.ly/SLSiTunes
🎤Social Media
Website: https://www.slsmusic.net
Instagram: https://www.instagram.com/slsmusictw
Twitter: https://twitter.com/slsmusictw
Facebook: https://www.facebook.com/slsmusictt
🥁Direct Donation
PayPal► https://www.paypal.me/SLSMusic
歐付寶► https://www.bit.ly/DonateSLS
🙏THANKS YOU FOR SUPPORTING SLSMusic
🔵Patreon "Grand Piano"
Kater of Glencoe、Lyra Mao、かず K・、阿夜、清艵宮、Mikael Mazareth、Zythian、棠哥、炎南 白
🟢Patreon "Piano"
Deemo Harlos、LitGrass Chou、Judy Tseng、Joyce Ninomiya、Kezeranix、維恩 姜、Gordon
🔴YouTube Sponser
交替的白晝與黑夜・Chia-Chi Chang
🎧 Playlists
Official Playlist
https://www.youtube.com/playlist?list=PLqY5-xxyprjtckllGMQK4XljIu_5csx3z
Game Music
https://youtube.com/playlist?list=PLqY5-xxyprjvKpCZTmMQZ6wwnveFBjoUj
🔧Equipment
●Piano / Nord Piano 3
●Speakers / ADAM A7X
●Audio Interface / Yamaha AG06
●Camera / Panasonic GH5
●Studio Desk / Wavebone HEADQUARTER
■──────────────────■
#ChronoTrigger #TokyoOlympics #Piano
server list 在 BlueBerries詭計星的頻道 Youtube 的最佳解答
If you are F2P, you can stick with the Lunatic that you get from the tutorial, but if you are a mage, you better get a Rocker or Giearth afterward.
Get any white pet first, feed him with 45k zeny pet items daily to leveling him fast, or just petting it if you are poor.
After you had extra funds, try to catch until you had 3+ pets because you can breed 3 pets at a time.
(You can feed the pet 30 times per day. 10 times per pet)
If you want to get a better stat boost, catch the Blue Pet is also a good idea, just a little expensive.
SEA server is so nice, it let you choose which pet you want, and give free pet taming item, TW confirmed CBT+Cash Grab server.
0:00 Intro
0:38 How to get a Pet
2:03 Pet Stamina Explained
3:13 Pet Skill Explained
4:05 Pet Gacha Explained
4:45 Pet Evolve Explained
6:10 How to choose a Pet
7:12 Full Pet skill List
server list 在 BlueBerries詭計星的頻道 Youtube 的最佳貼文
Game Version Code is something like a license for the game in CN, without it, you cannot monetize the game in CN.
RoX & ROO is the original game of CN, but they can't get the Game Version Code, so they end up hosting their game overseas (KR/JP/TW/SEA).
Unless RoM releases the PC Client for overseas only (KR/JP/TW/SEA), which I think is kinda impossible.
How to get the Game Version Code is mysterious.
0:00 Intro
0:20 New Ancient EQ part
1:31 New Mentor Potion Issue
2:06 Soul Linker or TaeKwon
2:34 PvP Spectator Mode
3:10 Nerf Comodo Legend Difficulty?
3:17 New MVP System
4:11 Level Cap of Guild Blessing/Prayer/Rune
5:14 Update Battle of Cake Shop list
5:39 Ragnarok Next EP New Art style concept
6:30 RoM PC Client
6:49 Past Collab Re-Run
7:08 Safe Refine15
7:20 Pity System for Collab Gacha
7:47 Pray Card Exchange Limited Event
8:01 Cross-Server PvP GvG System
server list 在 List of Top Public Time Servers - gists · GitHub 的推薦與評價
List of Top Public Time Servers. ... Apple NTP server [AS714, AS6185]:. time.apple.com ... Anycast address for nearest NTP server of the above: ntp.se ... ... <看更多>
server list 在 Minecraft Server List | Facebook 的推薦與評價
Minecraft Server List 。 32085 個讚· 6 人正在談論這個。 https://minecraft-server-list.com/ - We collect and list active Minecraft servers - we check uptime. ... <看更多>