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
{{ message }}
Repository navigation
[Other] Evaluate SCS-compliance of Yaook with respect to IaaS standards beyond SCS-compatible IaaS v4 #718
Beyond that, the new standards were defined and may be part of SCS-compatible IaaS v5. We have to evaluate if [FitKo Poc] and C&H SCS test cluster is SCS-compliant with respect to the following new IaaS standards:
@fraugabel You're right. It's a rather common transformation between cli arguments and variable names: _ in variable name becomes - in cli argument and vice versa. The Python library click for instance does this automatically IIRC.
@fraugabel You're right. It's a rather common transformation between cli arguments and variable names: _ in variable name becomes - in cli argument and vice versa. The Python library click for instance does this automatically IIRC.
@mbuechse i am on it, the connection.network.default_security_group_rules() seems to be outdated
@fraugabel and I had a discussion about the Default Security Group Rules Test. We found something very important:
The API I use to test the Default Security Group Rules is pretty new. In the 2023.2 release it was added: "A new API which allows a cloud administrator to define their own set of security group rules added automatically to every new default and/or custom security group created for projects."
But Yaook as it is used for the test case in Leipzig does not yet support this or newer releases.
As we will have this problem in future with other standards too (e.g. Domain Manager or the roles standard), it would be important to close the gap between new OpenStack releases and Yaook.
Up until then we discussed adding backwards-compatibility to the Test. Such like: if the new API does not exist, we will fall back to 1. creating a new security group, 2. checking that there only exist 2 rules allowing all egress traffic in this groups and 3. delete the security group afterwards.
backwards-compatibility to the Test is added and tested on Yaook in Leipzig: creating a new security group initializes automaticallly two egress rules (IPv4 and IPv6) but no ingress rule, this information can be successfully requested and confirmed by the test.
SCS-compliance of Yaook concerning the Key-Manager-Standard failed, for users with the 'member' role, are not authorized to use the Key-Manager.
User has member role.
User has reader role.
Users with the 'member' role can use Key Manager API: FAILAccording to the Key Manager Standard, users with the'member' role should be able to use the Key Manager API.
ERROR: ForbiddenException: 403: Client Error for url: https://key-manager.l1a.cloudandheat.com:443/v1/secrets, Forbidden
SCS-compliance of Yaook concerning the Key-Manager-Standard failed, for users with the 'member' role, are not authorized to use the Key-Manager.
User has member role.
User has reader role.
Users with the 'member' role can use Key Manager API: FAILAccording to the Key Manager Standard, users with the'member' role should be able to use the Key Manager API.
ERROR: ForbiddenException: 403: Client Error for url: https://key-manager.l1a.cloudandheat.com:443/v1/secrets, Forbidden
Just chiming in here to add some context: this is expected for OpenStack releases earlier than the upcoming 2024.2 ("Dalmatian") release in conjunction with Yaook. The upcoming release will default [oslo.policy]enforce_new_defaults in barbican.conf to True, which in turn migrates Barbican to the new unified role model (reader, member, admin).
For any current Barbican releases, this is not the case and Barbican will still ship its own custom roles1.
Since Yaook mainly uses Barbican's default policies2, this prevents users with the member role to access the functionalities.
This can be addressed in two ways:
Set [oslo.policy]enforce_new_defaults=True in barbican.conf (not recommended for OpenStack releases older than 2024.1)
Redirect Barbican's creator role to member
Approach no. 2 is easily implemented in Yaook by adjusting the BarbicanDeployment manifest template:
SCS-compliance of Yaook concerning the Key-Manager-Standard failed, for users with the 'member' role, are not authorized to use the Key-Manager.
User has member role.
User has reader role.
Users with the 'member' role can use Key Manager API: FAILAccording to the Key Manager Standard, users with the'member' role should be able to use the Key Manager API.
ERROR: ForbiddenException: 403: Client Error for url: https://key-manager.l1a.cloudandheat.com:443/v1/secrets, Forbidden
Just chiming in here to add some context: this is expected for OpenStack releases earlier than the upcoming 2024.2 ("Dalmatian") release in conjunction with Yaook. The upcoming release will default [oslo.policy]enforce_new_defaults in barbican.conf to True, which in turn migrates Barbican to the new unified role model (reader, member, admin).
For any current Barbican releases, this is not the case and Barbican will still ship its own custom roles1. Since Yaook mainly uses Barbican's default policies2, this prevents users with the member role to access the functionalities. This can be addressed in two ways:
1. Set `[oslo.policy]enforce_new_defaults=True` in `barbican.conf` (not recommended for OpenStack releases older than 2024.1)
2. Redirect Barbican's `creator` role to `member`
Approach no. 2 is easily implemented in Yaook by adjusting the BarbicanDeployment manifest template:
This indeed should be standard in yaook, to be able to use Barbican as a normal user (those usually have only the member role). At least until the new secure RBAC will be enabled by default - which seems to not be the case even in 2024.2, when I look at @markus-hentsch comments in the role standard
AZs are not a must have, but we should have dedicated fire zones, when we want to establish a AZ.
This is done per deployment, so we can consider yaook as compatible to this standard.
Mandatory Services
Yaook needs to also roll out a Load-Balancer like Octavia. This is currently under development
Backup Service for Volumes
This just needs to be enabled as a standard. This should not be a big blocker.
Activity
mbuechse commentedon Aug 29, 2024
110 is a DR, not new
anjastrunk commentedon Aug 29, 2024
Do we plan to stabilize this draft in the near future?
mbuechse commentedon Aug 29, 2024
It is stable.
14 remaining items
mbuechse commentedon Sep 10, 2024
Keep in mind that the main script is agnostic of OpenStack. It can be used to call all manner of test scripts
fraugabel commentedon Sep 10, 2024
@mbuechse i just stumbled across that and wondered whether there is an agreement on argument namings like
os-cloudvsos_cloudmbuechse commentedon Sep 10, 2024
@fraugabel You're right. It's a rather common transformation between cli arguments and variable names:
_in variable name becomes-in cli argument and vice versa. The Python libraryclickfor instance does this automatically IIRC.fraugabel commentedon Sep 10, 2024
@mbuechse i am on it, the
connection.network.default_security_group_rules()seems to be outdatedjosephineSei commentedon Sep 11, 2024
@fraugabel and I had a discussion about the Default Security Group Rules Test. We found something very important:
The API I use to test the Default Security Group Rules is pretty new. In the 2023.2 release it was added: "A new API which allows a cloud administrator to define their own set of security group rules added automatically to every new default and/or custom security group created for projects."
But Yaook as it is used for the test case in Leipzig does not yet support this or newer releases.
As we will have this problem in future with other standards too (e.g. Domain Manager or the roles standard), it would be important to close the gap between new OpenStack releases and Yaook.
Up until then we discussed adding backwards-compatibility to the Test. Such like: if the new API does not exist, we will fall back to 1. creating a new security group, 2. checking that there only exist 2 rules allowing all egress traffic in this groups and 3. delete the security group afterwards.
fraugabel commentedon Sep 16, 2024
backwards-compatibility to the Test is added and tested on Yaook in Leipzig: creating a new security group initializes automaticallly two egress rules (IPv4 and IPv6) but no ingress rule, this information can be successfully requested and confirmed by the test.
fraugabel commentedon Sep 19, 2024
SCS-compliance of Yaook concerning the Key-Manager-Standard failed, for users with the 'member' role, are not authorized to use the Key-Manager.
markus-hentsch commentedon Sep 19, 2024
Just chiming in here to add some context: this is expected for OpenStack releases earlier than the upcoming 2024.2 ("Dalmatian") release in conjunction with Yaook. The upcoming release will default
[oslo.policy]enforce_new_defaultsinbarbican.conftoTrue, which in turn migrates Barbican to the new unified role model (reader, member, admin).For any current Barbican releases, this is not the case and Barbican will still ship its own custom roles1.
Since Yaook mainly uses Barbican's default policies2, this prevents users with the
memberrole to access the functionalities.This can be addressed in two ways:
[oslo.policy]enforce_new_defaults=Trueinbarbican.conf(not recommended for OpenStack releases older than 2024.1)creatorrole tomemberApproach no. 2 is easily implemented in Yaook by adjusting the
BarbicanDeploymentmanifest template:Footnotes
https://docs.openstack.org/barbican/2024.1/admin/access_control.html#default-policy ↩
https://gitlab.com/yaook/operator/-/blob/85dc33e7a9f982c841c951e693d6a0a538bcfc7c/docs/examples/barbican.yaml#L44-45 ↩
josephineSei commentedon Sep 20, 2024
This indeed should be standard in yaook, to be able to use Barbican as a normal user (those usually have only the member role). At least until the new secure RBAC will be enabled by default - which seems to not be the case even in 2024.2, when I look at @markus-hentsch comments in the role standard
anjastrunk commentedon Nov 25, 2024
@josephineSei @fraugabel @markus-hentsch All associated tasks are done. Can this issue be closed?
mbuechse commentedon Nov 25, 2024
Yes, consider it done. We need to adapt a few things in the PoC for key manager and volume backup, but that is already underway.
josephineSei commentedon Nov 25, 2024
Concerning the additional three standards:
Availability Zone Standard
AZs are not a must have, but we should have dedicated fire zones, when we want to establish a AZ.
This is done per deployment, so we can consider yaook as compatible to this standard.
Mandatory Services
Yaook needs to also roll out a Load-Balancer like Octavia. This is currently under development
Backup Service for Volumes
This just needs to be enabled as a standard. This should not be a big blocker.
mbuechse commentedon Nov 25, 2024
You're right, Octavia missing as well, but that, too, is only a matter of time because we've been working on it already.