Enabling Cloud-Native Applications with Application Credentials in Keystone
Colleen Murphy Cloud Developer at SUSE
cmurphy @_colleenm
Enabling Cloud-Native Applications with Application Credentials in - - PowerPoint PPT Presentation
Enabling Cloud-Native Applications with Application Credentials in Keystone Colleen Murphy Cloud Developer at SUSE cmurphy @_colleenm Overview Why we needed application credentials What are application credentials? (with demo!)
cmurphy @_colleenm
2
3
4
from cinderclient import client from keystoneauth1 import session from keystoneauth1.identity.generic import password auth = password.Password(username='cmurphy', password='secrets', project_name='production', user_domain_name='LDAP_EMEA', project_domain_name='Default', auth_url='https://cloud.example.com/identity') s = session.Session(auth=auth) cinder = client.Client('3', session=s) cinder.volume_backups.create('5ee22c66-4ce7-4136-bffa-371a4cf40d43')
5
6
Protecting plaintext secrets: https://review.openstack.org/474304
7
LDAP domain cmurphy user application domain admin role on app user creates Bug 968696
8
9
10
11
12
13
14
clouds:
auth: auth_url: https://cloud.example.com/identity/v3 application_credential_id: "a2911c0aadea457e8d713955ab3675d0" application_credential_secret: "BB6L1wghFcr5AlZ3JK6vEl-B936vACEJJoof" region_name: "RegionOne" interface: "public" identity_api_version: 3 auth_type: "v3applicationcredential"
15
clouds:
auth: auth_url: https://cloud.example.com/identity/v3 username: "cmurphy" user_domain_name: "suse.de" application_credential_name: "volume_backups_001" application_credential_secret: "BB6L1wghFcr5AlZ3JK6vEl-B936vACEJJoof" region_name: "RegionOne" interface: "public" identity_api_version: 3 auth_type: "v3applicationcredential"
16
1.
5.
17
18
19
20 20
21
22
23
24
#openstack-keystone
cmurphy @_colleenm