Skip to content

[Other] Evaluate SCS-compliance of Yaook with respect to IaaS standards beyond SCS-compatible IaaS v4  #718

Closed

Activity

  1. added
    standards
    SCS-VP10
    on Aug 29, 2024
  2. mbuechse commented on Aug 29, 2024

    @mbuechse
    Contributor

    110 is a DR, not new

  3. anjastrunk commented on Aug 29, 2024

    @anjastrunk
    ContributorAuthor

    110 is a DR, not new

    Do we plan to stabilize this draft in the near future?

  4. mbuechse commented on Aug 29, 2024

    @mbuechse
    Contributor

    110 is a DR, not new

    Do we plan to stabilize this draft in the near future?

    It is stable.

  5. 14 remaining items

  6. mbuechse commented on Sep 10, 2024

    @mbuechse
    Contributor

    Keep in mind that the main script is agnostic of OpenStack. It can be used to call all manner of test scripts

  7. fraugabel commented on Sep 10, 2024

    @fraugabel
    Contributor

    @fraugabel this is by design. I can explain when I'm back

    @mbuechse i just stumbled across that and wondered whether there is an agreement on argument namings like os-cloud vs os_cloud

  8. mbuechse commented on Sep 10, 2024

    @mbuechse
    Contributor

    @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.

  9. fraugabel commented on Sep 10, 2024

    @fraugabel
    Contributor

    @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

  10. josephineSei commented on Sep 11, 2024

    @josephineSei
    Contributor

    @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.

  11. fraugabel commented on Sep 16, 2024

    @fraugabel
    Contributor

    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.

  12. fraugabel commented on Sep 19, 2024

    @fraugabel
    Contributor

    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
    
  13. markus-hentsch commented on Sep 19, 2024

    @markus-hentsch
    Contributor

    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:

    kind: BarbicanDeployment
    ...
    spec:
      ...
      policy:
        "admin": "role:admin"
        "creator": "role:member"

    Footnotes

    1. https://docs.openstack.org/barbican/2024.1/admin/access_control.html#default-policy ↩

    2. https://gitlab.com/yaook/operator/-/blob/85dc33e7a9f982c841c951e693d6a0a538bcfc7c/docs/examples/barbican.yaml#L44-45 ↩

  14. josephineSei commented on Sep 20, 2024

    @josephineSei
    Contributor

    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:

    kind: BarbicanDeployment
    ...
    spec:
      ...
      policy:
        "admin": "role:admin"
        "creator": "role:member"

    Footnotes

    1. https://docs.openstack.org/barbican/2024.1/admin/access_control.html#default-policy [↩](#user-content-fnref-1-2ebd40ef87e5f42586bd5c73951322ee)
    
    2. https://gitlab.com/yaook/operator/-/blob/85dc33e7a9f982c841c951e693d6a0a538bcfc7c/docs/examples/barbican.yaml#L44-45 [↩](#user-content-fnref-2-2ebd40ef87e5f42586bd5c73951322ee)
    

    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

  15. anjastrunk commented on Nov 25, 2024

    @anjastrunk
    ContributorAuthor

    @josephineSei @fraugabel @markus-hentsch All associated tasks are done. Can this issue be closed?

  16. mbuechse commented on Nov 25, 2024

    @mbuechse
    Contributor

    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.

  17. josephineSei commented on Nov 25, 2024

    @josephineSei
    Contributor

    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.

  18. mbuechse commented on Nov 25, 2024

    @mbuechse
    Contributor

    You're right, Octavia missing as well, but that, too, is only a matter of time because we've been working on it already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

SCS-VP10standards

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions