PAGE
1
DEVOPS INDONESIA
PAGE
1
DEVOPS INDONESIA
Sebastianus Kurniawan Hadisantoso & M. Yahya Harlan
PAYFAZZ
Jakarta, 12 Agustus 2021
Securing Your Database:
Dynamic DB Credentials
Securing Your Database:
Dynamic DB Credentials
Speaker Profile
Sebastianus Kurniawan Hadisantoso
Vice President Engineering - Payfazz Teknologi Nusantara
- https://www.linkedin.com/in/sebastianuskh/
- https://github.com/sebastianusk
Speaker Profile
Muhammad Yahya Harlan
Site Reliability Engineering - Payfazz Teknologi Nusantara
- linkedin.com/in/mohdyahyahrln
- anakaiti.net
Let’s Begin With A Story
Once upon a time,
there is a happy developer…
Who need access to the DB
He ask the DBA, get the connection
String. Then, he use it… Everywhere...
It is hard to change everything. The
paper might be read by someone else
that is not allowed
How To Secure It?
“AAA” Computer Security
1. Authentication
2. Authorization
3. Accounting
Authentication
We need to make sure that the developer is the real one
Authorization
We need to make sure that the access is enough, not over
granted or lack of permission, maybe create roles for every
usage?
Accountability
Access should be auditable, the authorized person can check
the historical access
Avoid Human Vulnerability:
- Password Rotation
- Easy to remember password
Components
Vault
- Handles credential lifecycle
- Authenticates users & services
- Policy mapping
- Audit Logging
- AAA
Google
- User directory
- Groups for authorization
- Authentication
Kubernetes
- Service attestation
- Secret injection
env:
- key: DB_CONNSTR
value: vault:database/creds/...
- Secret lifecycle
Database
- Dynamic user creation
- Database roles
Write Read Delete
Apps
Engineers
Readonly
Demo Time!
github.com/anakaiti/dynamic-db-credentials-demo
Benefits
Authentication
1. We can be sure that user is legitw
Authentication - Improvement
Enforce password policy: password rotation, multi
authentication
Authorization
1. Easy to manage user
2. Multi level Authorization
Authorization - Improvement
1. Using IDP that support grouping
Accountability
1. Auditable Log can be reviewed
Accountability - Improvement
Send the log data to a better place to store auditrail log
Password Rotation
1. Auto rotation
2. Even better, the Human no need to know the
credentials!
Other Vault Use Cases
Vault K/V
Vault SSH
Any Questions?
We Are Hiring!
career@fazzfinancial.com
Stay Connected With Us!
t.me/iddevops
DevOps Indonesia
DevOps Indonesia
DevOps Indonesia
@iddevops
@iddevops
DevOps Indonesia
Scan here
PAGE
35
DEVOPS INDONESIA
Alone We are smart, together We are brilliant
THANK YOU !
Quote by Steve Anderson

Securing Your Database Dynamic DB Credentials