security at inception atl slide... · •hashicorp vault key-value store (kv) •hashicorp vault...

21
Security at Inception Ansible Orchestration Meets Secrets Management Joe Garcia, CISSP DevOps Security Engineer, CyberArk

Upload: others

Post on 01-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Security at InceptionAnsible Orchestration Meets Secrets ManagementJoe Garcia, CISSPDevOps Security Engineer, CyberArk

Page 2: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Share your automation story

1. How did you get started with Ansible?

2. How long have you been using it?

3. What's your favorite thing to do when you Ansible?

Page 3: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

WHO IS CYBERARK?

Page 4: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

SECRETS MANAGEMENT TODAY

Developer SCM Build PackageRepo

Deploy Test Stage Prod

Jenkins CredentialsArtifactory

Secrets Ansible Tower Credentials

Page 5: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

“ISLANDS OF SECURITY”Each ”Island of Security” requires maintenance, management, and auditing

Hiera DatabagsTower Credentials

IAM / KMS IAM / KMS

Secrets SecretsSecrets

IAM / KMS

Page 6: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

THE PROBLEM? WE’RE HUMAN

STRESSED BUSY TIME OFF

Page 7: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

SECRET MANAGEMENT METHODS

Developer SCM Build PackageRepo

Deploy Test Stage Prod

Centralized Secrets ManagementCentralized AuditingCentralized Dynamic Retrieval

Page 8: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

JUST-IN-TIME SECRET RETRIEVAL FROM CYBERARK

CENTRAL CREDENTIALPROVIDER

DYNAMIC ACCESSPROVIDER

• Web Service• Attribute-Based Authn• 100+ Integrations

• Containerized• Token + Attribute-Based Authn• Auto-Scalable with HA

Page 9: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Ansible TowerSecret Management System

Page 10: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

AVAILABLE INTEGRATIONS IN TOWER v3.5.1

• CyberArk Application Identity Manager (AIM)• CyberArk Conjur• HashiCorp Vault Key-Value Store (KV)• HashiCorp Vault SSH Secrets Engine• Microsoft Azure Key Management System (KMS)

• CyberArk Application Identity Manager (AIM)• CyberArk Conjur

Page 11: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Create Credential & Link to Secret Lookup

Allows the centralized vault to rotate and manage secrets

Add Machine Credential to Job TemplateOR

Reference Credential Variable in Playbook

CYBERARK APPLICATION ACCESS MANAGER (AAM)

Formerly Application Identity Manager (AIM)

Credential Type: CyberArk AIM Secret Lookup

Page 12: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

CYBERARK CONJUR

Credential Type: CyberArk Conjur Secret Lookup

Create Credential & Link with Secret Lookup

Add Machine Credential to Job TemplateOR

Reference Credential Variable in Playbook

Allows the centralized vault to rotate and manage secrets

Page 13: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Onboarding SecretsCreated in Play

Page 14: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

ANSIBLE GALAXYPROVISIONING ROLE

$ ansible-galaxy install infamousjoeg.provisioning

Onboards credentials and secrets into CyberArk PAS Core Solution created in play

Allows you to randomize secrets and no_log

Page 15: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

INFAMOUSJOEG.PROVISIONINGEXAMPLE

Page 16: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Built-In Lookup PluginsFor Ansible Engine

Page 17: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

CYBERARKPASSWORDLOOKUP PLUGIN

Available in Ansible Engine v2.5 or above

Retrieves secrets “Just-in-Time” usingCyberArk Credential Provider

Page 18: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

CONJUR_VARIABLELOOKUP PLUGIN

Available in Ansible Engine v2.5 or above

Retrieves secrets “Just-in-Time” fromCyberArk Conjur

Page 19: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

Ansible Engine v2.5 or above

No Ansible Tower licensing

CyberArk Credential Providercyberarkpassword

CyberArk Conjurconjur_variable

Ansible Tower below v3.5.1

WHICH INTEGRATION TO USEAND WHEN?

Ansible TowerSecret Management System

Onboarding SecretsCreated in Play

Built-In Lookup Pluginsfor Ansible Engine

Ansible Tower v3.5.1 or above

CyberArk Central Credential ProviderCyberArk AIM Secret Lookup

CyberArk ConjurCyberArk Conjur Secret Lookup

CyberArk PAS Core Solution

Secret creation required mid-play

Secret is deemed privileged & fallsunder compliance regulations

Page 20: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management

@Joe_Garcia infamousjoeg

https://cyberark.com | https://conjur.org

Page 21: Security at Inception ATL Slide... · •HashiCorp Vault Key-Value Store (KV) •HashiCorp Vault SSH Secrets Engine •Microsoft Azure Key Management System (KMS) ... Secret Management