Authentication JSON RPC even in no-auth mode
Also stop using deprecated HTTP basic options. Change-Id: I5065007e30a1c8c1323e08fac24eb53d8cde19dc
This commit is contained in:
parent
3bf9631ae5
commit
156a316926
@ -152,7 +152,6 @@
|
||||
name: "{{ admin_username }}"
|
||||
password: "{{ admin_password }}"
|
||||
when:
|
||||
- not noauth_mode | bool
|
||||
- not enable_keystone | bool
|
||||
|
||||
- name: "Generate user htpasswd for ironic"
|
||||
|
@ -170,16 +170,10 @@ username = {{ ironic.service_catalog.username }}
|
||||
password = {{ ironic.service_catalog.password }}
|
||||
user_domain_id = default
|
||||
project_domain_id = default
|
||||
{% elif noauth_mode | bool %}
|
||||
auth_strategy = noauth
|
||||
auth_type = none
|
||||
{% else %}
|
||||
auth_strategy = http_basic
|
||||
auth_type = http_basic
|
||||
http_basic_auth_user_file = /etc/ironic/htpasswd
|
||||
username = {{ admin_username }}
|
||||
password = {{ admin_password }}
|
||||
# Deprecated - compatibility
|
||||
http_basic_username = {{ admin_username }}
|
||||
http_basic_password = {{ admin_password }}
|
||||
{% endif %}
|
||||
|
4
releasenotes/notes/json-rpc-auth-2430cc7432cbfe10.yaml
Normal file
4
releasenotes/notes/json-rpc-auth-2430cc7432cbfe10.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
Ironic JSON RPC is now always authenticated, even in no-auth mode.
|
Loading…
Reference in New Issue
Block a user