모든 응용프로그램은 은밀하게 유지할 정보를 포함합니다. 이 정보는 데이터베이스 신원, 외부
서비스 인증, 특정 자원의 위치 등을 말합니다. 이 모두를 시크릿
secrets
이라고 부릅니다. 응용프
로그램을 시작할 때 혹은 그 이후에 이 시크릿을 저장할 안전한 장소가 필요합니다. 이번 장에
서는 쿠버네티스와 볼트
Valut
를 사용해 시크릿을 관리하는 법을 배워보겠습니다.
12.1
쿠버네티스 시크릿을 사용한 데이터 저장
문제
직접 포드나 컨테이너에 저장하는 것보다 안전한 방법으로 쿠버네티스에 시크릿 저장하기
해결
쿠버네티스 시크릿을 사용해 비밀번호, 토큰,
SSH
키와 같은 민감한 데이터를 평문으
로 컨테이너에 저장하고 가져옵니다. 쿠버네티스는 민감한 데이터를 저장하는 데 사용되는
secret
객체의 개념을 제공합니다.
시크릿 객체에 민감한 데이터를 저장한다고해서 자동으로 안전해지는 것은 아님을 유념해
야 합니다. 왜냐하면 쿠버네티스는 데이터를 암호화하지 않고 기본적으로 베이스
64
로 인코딩
하기 때문입니다. 시크릿을 사용하면 표준 설정 절차에서 제공하지 않는 몇몇 기능을 제공합
니다.
322
쿼커스 쿡북
●
시크릿에 접근하는 권한 정책을 정의할 수 있음
●
쿠버네티스가 민감한 데이터를 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.