You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GRANT ALL PRIVILEGES ON barbican.* TO 'barbican'@'localhost' identified by 'password123';
GRANT ALL PRIVILEGES ON barbican.* TO 'barbican'@'%' identified by 'password123';
exit
Create Openstack objects
Source .adminrc
source .adminrc
Create service and creds
Create barbican user and add role:
openstack user create --domain default --password password123 barbican
openstack role add --project service --user barbican admin
Create creator role and add to user:
openstack role create creator
openstack role add --project service --user barbican creator
Create barbican service:
openstack service create --name barbican \
--description "Key Manager" key-manager
Create service API endpoints:
foriin public internal admin; \
do openstack endpoint create --region RegionOne \
key-manager $i http://controller:9311; \
done
[DEFAULT]# ...sql_connection = mysql+pymysql://barbican:password123@controller/barbicantransport_url = rabbit://openstack:password123@controller[keystone_authtoken]#...www_authenticate_uri = http://controller:5000auth_url = http://controller:5000memcached_servers = controller:11211auth_type = passwordproject_domain_name = defaultuser_domain_name = defaultproject_name = serviceusername = barbicanpassword = password123[secretstore]#...enabled_secretstore_plugins = store_crypto[crypto]#...enabled_crypto_plugins = simple_crypto[simple_crypto_plugin]# the kek should be a 32-byte value which is base64 encodedkek = 'YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY='
populate database
su -s /bin/sh -c "barbican-manage db upgrade" barbican
finalize install
systemctl enable barbican-keystone-listener
systemctl enable barbican-worker
service barbican-keystone-listener restart
service barbican-worker restart
service apache2 restart
verify ops
openstack secret store --name mysecret --payload j4=]d21
export SECRET_HREF=$(openstack secret list --name mysecret -c 'Secret href' -f value)
openstack secret get $SECRET_HREF
openstack secret get $SECRET_HREF --payload
openstack secret delete $SECRET_HREF
unset SECRET_HREF