Skip to content

Set of widely used security Groups in OpenStack #473

Closed
SovereignCloudStack/docs
#179

Description

@josephineSei

As a user of IaaS, I want to make my VMs accessable in different but secure ways without having to create security groups for every VM. When using diefferent sets of predefined security groups, I am sure the Firewall-Rules I set, are consistent and reusable.

I want to choose from a preset of defined security groups and maybe add additional self-defined groups to a VM.

Definition of Done:

  • Discuss a good strategy to handle security groups in a DR
  • Prepare a standard and/or guide that fulfills the decision of the DR

Activity

  1. josephineSei commented on Feb 13, 2024

    @josephineSei
    ContributorAuthor

    In contrast to other resources, that either are completely public (like flavors) or can have public visibility and usability (like images), security groups are completely bound to projects1. That is a design decision by OpenStack even though at least some public security groups would be useful. Instead for every project a default security group is created in the same manner and will not be shared.

    That behavior has upsides and downsides. On the positive side: every user with at least member role in a project, can adjust the rules of any security groups in that project (except for the default group).
    The downside is, that security groups that are widely used (like opening the ingress port for ssh) have to be defined again and again for and in every project. In addition every Project has a Quota for security group, that defaults to 10 and 1 security group is already set: the default security group. So in general project user can add 9 additional security groups.

    So even though it makes sense to standardize a set of security groups, that are widely used and should always be present, this standard would have to be applied to every project. This is impractical. The design of OpenStack puts every user in charge over their security groups.

    Nevertheless, we can think about having a guide or a documentation about "best practice: how to configure and use security groups". Where we could recommend to create a base set of security groups for a project.

    Such a set could include ssh, http, https and maybe one or two more useful groups.

    Footnotes

    1. https://docs.openstack.org/nova/latest/user/security-groups.html ↩

  2. self-assigned this
    on Feb 19, 2024
  3. changed the title [-]Set of standardized security Groups in OpenStack[/-] [+]Set of widely used security Groups in OpenStack[/+] on Feb 19, 2024
  4. berendt commented on Feb 19, 2024

    @berendt
    Contributor

    I think it is possible to share security groups via Neutron RBAC rules. This way it is possible to create global default/best practice security groups (e.g. in the admin project) that can be shared wit new projects afterwards.

    https://docs.openstack.org/neutron/latest/admin/config-rbac.html#sharing-a-security-group-with-specific-projects

  5. berendt commented on Feb 19, 2024

    @berendt
    Contributor

    Test on Cloud in a Box (OpenStack 2023.2):

    dragon@manager:~$ openstack --os-cloud admin security group create TESTING
    +-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Field           | Value                                                                                                                                                                        |
    +-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | created_at      | 2024-02-19T15:30:32Z                                                                                                                                                         |
    | description     | TESTING                                                                                                                                                                      |
    | id              | 6445c103-4451-4dc7-9dcb-a40dd5e8b5e8                                                                                                                                         |
    | name            | TESTING                                                                                                                                                                      |
    | project_id      | 437c0ae45f1c4c059f4eab05e8272ebe                                                                                                                                             |
    | revision_number | 1                                                                                                                                                                            |
    | rules           | created_at='2024-02-19T15:30:32Z', direction='egress', ethertype='IPv4', id='ef8aa0cd-4143-44f1-9b1d-ef23985641a2', standard_attr_id='35', updated_at='2024-02-19T15:30:32Z' |
    |                 | created_at='2024-02-19T15:30:32Z', direction='egress', ethertype='IPv6', id='ff583106-f0fd-4ce0-9897-16efdfc8e70a', standard_attr_id='36', updated_at='2024-02-19T15:30:32Z' |
    | shared          | False                                                                                                                                                                        |
    | stateful        | True                                                                                                                                                                         |
    | tags            | []                                                                                                                                                                           |
    | updated_at      | 2024-02-19T15:30:32Z                                                                                                                                                         |
    +-----------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    
    dragon@manager:~$ openstack --os-cloud admin project list
    +----------------------------------+---------+
    | ID                               | Name    |
    +----------------------------------+---------+
    | 437c0ae45f1c4c059f4eab05e8272ebe | admin   |
    | 43800103d7e94eb4b25be7e6e9257804 | service |
    | 7e3143742e9c4f8c84866b6ad1e76079 | test    |
    +----------------------------------+---------+
    
    dragon@manager:~$ openstack --os-cloud test security group list
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    | ID                                   | Name    | Description            | Project                          | Tags |
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    | 09b40dc2-471a-4b23-92dd-fef7eae89679 | ssh     |                        | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    | 8aac5ded-11c7-4fcd-a75d-e8cfe9a87e48 | default | Default security group | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    | d4fe4680-5014-45cf-8338-42cbbc6bac2b | icmp    |                        | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    
    dragon@manager:~$ openstack --os-cloud admin network rbac create --target-project 7e3143742e9c4f8c84866b6ad1e76079 --action access_as_shared --type security_group 6445c103-4451-4dc7-9dcb-a40dd5e8b5e8
    +-------------------+--------------------------------------+
    | Field             | Value                                |
    +-------------------+--------------------------------------+
    | action            | access_as_shared                     |
    | id                | 431203ba-98c7-4c7d-b9ef-a8d85a4b40bc |
    | object_id         | 6445c103-4451-4dc7-9dcb-a40dd5e8b5e8 |
    | object_type       | security_group                       |
    | project_id        | 437c0ae45f1c4c059f4eab05e8272ebe     |
    | target_project_id | 7e3143742e9c4f8c84866b6ad1e76079     |
    +-------------------+--------------------------------------+
    
    dragon@manager:~$ openstack --os-cloud test security group list
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    | ID                                   | Name    | Description            | Project                          | Tags |
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    | 09b40dc2-471a-4b23-92dd-fef7eae89679 | ssh     |                        | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    | 6445c103-4451-4dc7-9dcb-a40dd5e8b5e8 | TESTING | TESTING                | 437c0ae45f1c4c059f4eab05e8272ebe | []   |
    | 8aac5ded-11c7-4fcd-a75d-e8cfe9a87e48 | default | Default security group | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    | d4fe4680-5014-45cf-8338-42cbbc6bac2b | icmp    |                        | 7e3143742e9c4f8c84866b6ad1e76079 | []   |
    +--------------------------------------+---------+------------------------+----------------------------------+------+
    
    dragon@manager:~$ openstack --os-cloud test security group delete TESTING
    Failed to delete group with name or ID 'TESTING': ForbiddenException: 403: Client Error for url: https://api.in-a-box.cloud:9696/v2.0/security-groups/6445c103-4451-4dc7-9dcb-a40dd5e8b5e8, rule:delete_security_group is disallowed by policy
    1 of 1 groups failed to delete.
    
  6. josephineSei commented on Feb 20, 2024

    @josephineSei
    ContributorAuthor

    Thank you for the hint @berendt I looked through it a little bit and found an option to share a security group with ALL projects at once, that also works beyond domains.

    As an admin you can use the --target-all-projects flag:

    $ openstack network rbac create --target-all-projects --action access_as_shared --type security_group 5f22e42e-95dc-4c0a-8651-57b1dfc8639f
    +-------------------+--------------------------------------+
    | Field             | Value                                |
    +-------------------+--------------------------------------+
    | action            | access_as_shared                     |
    | id                | bc22a865-46f9-4cd2-80af-3c249ba0e010 |
    | object_id         | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f |
    | object_type       | security_group                       |
    | project_id        | 15f2ab0eaa5b4372b759bde609e86224     |
    | target_project_id | *                                    |
    +-------------------+--------------------------------------+
    

    In another domain as a simple user:

    $ source domain-user-a.openrc
    $ openstack security group list
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    | ID                                   | Name        | Description            | Project                          | Tags |
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    | 03c51dc9-65c7-4cba-a83e-b8c662c109b5 | default     | Default security group | 8c59028a6e5144a78dfee2364d529070 | []   |
    | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f | test-group2 | test-group2            | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    

    The good thing is, the shared security groups will not count into the quota limit for security groups per project. So this would be an easy way to achieve a few more than one "default" security group.

    But the downside is that this feature is not security group specific:

    openstack network rbac list --long
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    | ID                                   | Object Type    | Object ID                            | Action             |
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    | 97507e4c-7413-4d61-ab21-047fc23516dd | security_group | 110b1bea-f0e0-4fb7-9fc7-cda1b6f927b0 | access_as_shared   |
    | bc22a865-46f9-4cd2-80af-3c249ba0e010 | security_group | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f | access_as_shared   |
    | 2467806f-5428-4506-8e23-f4690db04e01 | network        | 02ef8579-9917-4a01-893d-cb2f9f3d5f98 | access_as_shared   |
    | ed40996e-218d-4daa-b222-f3c603a5b8a6 | network        | 73edb86b-d7ab-4db3-82b7-25fa8b012e40 | access_as_external |
    | 45e0a707-af82-42a6-b93f-efde18216f13 | subnetpool     | cd7addd1-05d9-48a8-bc38-4a581354983f | access_as_shared   |
    | e514c2c8-65ac-4062-8b03-fe24f6fc4656 | subnetpool     | ad1cc1ed-3261-4df2-8c73-c3dd72d59061 | access_as_shared   |
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    

    As the admin would be the person creating and sharing the security group, there is another issue. They way to discover what a group is shared for is only discoverable within the admin project (a.k.a only for admins). As a user in another project you would have to look into the security group and KNOW what project id belongs to the admin project:

    stack@devstack:~/devstack$ openstack network rbac list --long
    
    stack@devstack:~/devstack$ openstack security group show test-group2
    +-----------------+---------------------------------------------------------------------------------------------------------------+
    | Field           | Value                                                                                                         |
    +-----------------+---------------------------------------------------------------------------------------------------------------+
    | created_at      | 2024-02-20T07:17:39Z                                                                                          |
    | description     | test-group2                                                                                                   |
    | id              | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f                                                                          |
    | name            | test-group2                                                                                                   |
    | project_id      | 15f2ab0eaa5b4372b759bde609e86224                                                                              |
    | revision_number | 3                                                                                                             |
    | rules           | created_at='2024-02-20T08:54:12Z', direction='ingress', ethertype='IPv4',                                     |
    |                 | id='1ca85a55-2697-4357-962f-9231f20294a5', normalized_cidr='0.0.0.0/0', port_range_max='80',                  |
    |                 | port_range_min='80', protocol='tcp', remote_ip_prefix='0.0.0.0/0', standard_attr_id='106',                    |
    |                 | updated_at='2024-02-20T08:54:12Z'                                                                             |
    |                 | created_at='2024-02-20T07:17:39Z', direction='egress', ethertype='IPv6',                                      |
    |                 | id='34c80e1e-53c4-47ba-b31f-968334abc22b', standard_attr_id='72', updated_at='2024-02-20T07:17:39Z'           |
    |                 | created_at='2024-02-20T08:54:19Z', direction='ingress', ethertype='IPv4',                                     |
    |                 | id='821ea5fe-9ec9-43f2-ae7a-efce09b9c6d8', normalized_cidr='0.0.0.0/0', port_range_max='22',                  |
    |                 | port_range_min='22', protocol='tcp', remote_ip_prefix='0.0.0.0/0', standard_attr_id='107',                    |
    |                 | updated_at='2024-02-20T08:54:19Z'                                                                             |
    |                 | created_at='2024-02-20T07:17:39Z', direction='egress', ethertype='IPv4',                                      |
    |                 | id='8c12a533-35f5-465a-9402-8207ea194670', standard_attr_id='73', updated_at='2024-02-20T07:17:39Z'           |
    | shared          | True                                                                                                          |
    | stateful        | True                                                                                                          |
    | tags            | []                                                                                                            |
    | updated_at      | 2024-02-20T08:54:19Z                                                                                          |
    +-----------------+---------------------------------------------------------------------------------------------------------------+
    stack@devstack:~/devstack$ openstack project list
    +----------------------------------+--------------+
    | ID                               | Name         |
    +----------------------------------+--------------+
    | 8c59028a6e5144a78dfee2364d529070 | test-project |
    +----------------------------------+--------------+
    

    Next point:
    Even if everything is configured in a way, that we will not have security issues, there will still be problem with the discoverability. Even as an admin it is not easy to see, what security group is shared and with whom.
    You first have to get the shared security groups ID, then list all network rbac items and then show the ones, where the ids match, to see whether they are shared to specific projects or to everyone:

    1. as admin get all security groups:
    openstack security group list
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    | ID                                   | Name        | Description            | Project                          | Tags |
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    | 02f56182-84c7-4622-b986-8b17b3c7f22a | http        | http                   | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    | 03c51dc9-65c7-4cba-a83e-b8c662c109b5 | default     | Default security group | 8c59028a6e5144a78dfee2364d529070 | []   |
    | 0a2427bd-db7b-4974-a372-3c5151b79b7f | default     | Default security group | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    | 110b1bea-f0e0-4fb7-9fc7-cda1b6f927b0 | test-group  | test-group             | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    | 1731f4e9-d155-4a86-b78c-6f8d3aafd9c2 | default     | Default security group | 1f3c2c6db7974b43a296aa808fd136e0 | []   |
    | 1dfcdcef-32bf-4fac-b948-2b2971242908 | default     | Default security group | 423fe7ab84ff4dd69aa24ce31499f47f | []   |
    | 33445c69-5ddb-43b1-af8d-fe8b4ccafd87 | default     | Default security group | 2caa58842d7d4bd9a5583856df8152cf | []   |
    | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f | test-group2 | test-group2            | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    | 7bed50bd-0dab-46a5-87fb-e72ad1eca074 | default     | Default security group | f58edaee60ad484facd2436d31d9caff | []   |
    | 8c110ced-4dad-40c1-afa0-fe40ebdf755d | ssh         | ssh                    | 15f2ab0eaa5b4372b759bde609e86224 | []   |
    +--------------------------------------+-------------+------------------------+----------------------------------+------+
    
    1. get all network rbac items (because there is no option to search for Object ID or shared for all projects):
    usage: openstack network rbac list [-h] [-f {csv,json,table,value,yaml}] [-c COLUMN] [--quote{all,minimal,none,nonnumeric}] [--noindent] [--max-width <integer>] [--fit-width]
                                       [--print-empty] [--sort-column SORT_COLUMN] [--sort-ascending | --sort-descending] [--type <type>] [--action <action>]
                                       [--target-project <target-project>] [--long]
    $ openstack network rbac list --long
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    | ID                                   | Object Type    | Object ID                            | Action             |
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    | 97507e4c-7413-4d61-ab21-047fc23516dd | security_group | 110b1bea-f0e0-4fb7-9fc7-cda1b6f927b0 | access_as_shared   |
    | bc22a865-46f9-4cd2-80af-3c249ba0e010 | security_group | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f | access_as_shared   |
    | 2467806f-5428-4506-8e23-f4690db04e01 | network        | 02ef8579-9917-4a01-893d-cb2f9f3d5f98 | access_as_shared   |
    | ed40996e-218d-4daa-b222-f3c603a5b8a6 | network        | 73edb86b-d7ab-4db3-82b7-25fa8b012e40 | access_as_external |
    | 45e0a707-af82-42a6-b93f-efde18216f13 | subnetpool     | cd7addd1-05d9-48a8-bc38-4a581354983f | access_as_shared   |
    | e514c2c8-65ac-4062-8b03-fe24f6fc4656 | subnetpool     | ad1cc1ed-3261-4df2-8c73-c3dd72d59061 | access_as_shared   |
    +--------------------------------------+----------------+--------------------------------------+--------------------+
    
    1. look into the rbac objects, where the object ID equals the selected security group IDs:
    openstack network rbac show bc22a865-46f9-4cd2-80af-3c249ba0e010
    +-------------------+--------------------------------------+
    | Field             | Value                                |
    +-------------------+--------------------------------------+
    | action            | access_as_shared                     |
    | id                | bc22a865-46f9-4cd2-80af-3c249ba0e010 |
    | object_id         | 5f22e42e-95dc-4c0a-8651-57b1dfc8639f |
    | object_type       | security_group                       |
    | project_id        | 15f2ab0eaa5b4372b759bde609e86224     |
    | target_project_id | *                                    |
    +-------------------+--------------------------------------+
    

    Auditing this is possible only for admins or system-scoped reader (and the system scope is part of the new secure RBAC system which maybe never will be completely implemented).

    This leads to the following questions:
    @bitkeks I would like to talk with you about possible security impacts of this.
    @fkr @garloff Do we want to make a standard requiring the sharing of security groups in this way? Even it would only be 3 to 5 groups?
    I would also like to get the feedback of the CSPs on this way.

  7. josephineSei commented on Feb 21, 2024

    @josephineSei
    ContributorAuthor

    In todays IaaS meeting I talked about a bug I found while testing this, I am currently reaching out to upstream to check, whether this is wanted or unwanted behavior and prepare a list of commands for people to recreate.
    I added a launchpad bug (currently still private) in neutron: https://bugs.launchpad.net/neutron/+bug/2054590

  8. bitkeks commented on Feb 22, 2024

    @bitkeks
    Member

    We reviewed the security impact of this week's discussed potential sec issue. Recommendation would be to implement the policy patch by @josephineSei into OSISM and document them in SCS IaaS docs.

    Maybe @berendt has interest in following up the patch in OSISM?

  9. moved this from Backlog to Doing in Sovereign Cloud Stackon Mar 4, 2024
  10. added
    SCS-VP10
    on Mar 4, 2024
  11. josephineSei commented on Mar 4, 2024

    @josephineSei
    ContributorAuthor

    While trying to find arguments for the decision record I write for this issue, I caught the following:

    As an admin I shared a new security group:

    stack@devstack:~/devstack$ openstack security group create group-for-everyone
    +-----------------+--------------------------------------------------------------------------+
    | Field           | Value                                                                    |
    +-----------------+--------------------------------------------------------------------------+
    | created_at      | 2024-03-04T13:28:22Z                                                     |
    | description     | group-for-everyone                                                       |
    | id              | b6a3834a-f89c-47a9-9ed6-ca89e93701c4                                     |
    | name            | group-for-everyone                                                       |
    | project_id      | 15f2ab0eaa5b4372b759bde609e86224                                         |
    | revision_number | 1                                                                        |
    | rules           | created_at='2024-03-04T13:28:22Z', direction='egress', ethertype='IPv6', |
    |                 | id='0cd433a9-57a0-4ee5-95b3-31990c408dc2', standard_attr_id='128',       |
    |                 | updated_at='2024-03-04T13:28:22Z'                                        |
    |                 | created_at='2024-03-04T13:28:22Z', direction='egress', ethertype='IPv4', |
    |                 | id='2cd70211-c154-4165-bdd2-5f8b0ac5f10c', standard_attr_id='129',       |
    |                 | updated_at='2024-03-04T13:28:22Z'                                        |
    | shared          | False                                                                    |
    | stateful        | True                                                                     |
    | tags            | []                                                                       |
    | updated_at      | 2024-03-04T13:28:22Z                                                     |
    +-----------------+--------------------------------------------------------------------------+
    stack@devstack:~/devstack$ openstack network rbac create --target-all-projects --action access_as_shared --type security_group group-for-everyone
    +-------------------+--------------------------------------+
    | Field             | Value                                |
    +-------------------+--------------------------------------+
    | action            | access_as_shared                     |
    | id                | 394d8e71-143f-4c5b-a72f-cd10af3222df |
    | object_id         | b6a3834a-f89c-47a9-9ed6-ca89e93701c4 |
    | object_type       | security_group                       |
    | project_id        | 15f2ab0eaa5b4372b759bde609e86224     |
    | target_project_id | *                                    |
    +-------------------+--------------------------------------+
    

    As a user I tried editing the rules of the shared group:

    stack@devstack:~/devstack$ source domain-user-a-2nd-project.openrc 
    stack@devstack:~/devstack$ openstack security group list
    +--------------------+--------------------+--------------------+----------------------+------+
    | ID                 | Name               | Description        | Project              | Tags |
    +--------------------+--------------------+--------------------+----------------------+------+
    | 3304e80e-c992-     | default            | Default security   | 55d642acf5b94a4b8d87 | []   |
    | 4842-8380-         |                    | group              | 756fbf10bc32         |      |
    | 08f3652b7cf7       |                    |                    |                      |      |
    | 5f22e42e-95dc-     | test-group2        | test-group2        | 15f2ab0eaa5b4372b759 | []   |
    | 4c0a-8651-         |                    |                    | bde609e86224         |      |
    | 57b1dfc8639f       |                    |                    |                      |      |
    | b6a3834a-f89c-     | group-for-everyone | group-for-everyone | 15f2ab0eaa5b4372b759 | []   |
    | 47a9-9ed6-         |                    |                    | bde609e86224         |      |
    | ca89e93701c4       |                    |                    |                      |      |
    +--------------------+--------------------+--------------------+----------------------+------+
    stack@devstack:~/devstack$ openstack security group rule create --dst-port 80 --protocol tcp --ingress b6a3834a-f89c-47a9-9ed6-ca89e93701c4
    +-------------------------+--------------------------------------+
    | Field                   | Value                                |
    +-------------------------+--------------------------------------+
    | belongs_to_default_sg   | False                                |
    | created_at              | 2024-03-04T13:43:47Z                 |
    | description             |                                      |
    | direction               | ingress                              |
    | ether_type              | IPv4                                 |
    | id                      | 9b044624-85f9-493b-a706-bb16e75ed851 |
    | name                    | None                                 |
    | normalized_cidr         | 0.0.0.0/0                            |
    | port_range_max          | 80                                   |
    | port_range_min          | 80                                   |
    | project_id              | 55d642acf5b94a4b8d87756fbf10bc32     |
    | protocol                | tcp                                  |
    | remote_address_group_id | None                                 |
    | remote_group_id         | None                                 |
    | remote_ip_prefix        | 0.0.0.0/0                            |
    | revision_number         | 0                                    |
    | security_group_id       | b6a3834a-f89c-47a9-9ed6-ca89e93701c4 |
    | tags                    | []                                   |
    | updated_at              | 2024-03-04T13:43:47Z                 |
    +-------------------------+--------------------------------------+
    

    As an admin I now see, someone edited the rules of my shared security group:

    stack@devstack:~/devstack$ openstack security group show b6a3834a-f89c-47a9-9ed6-ca89e93701c4
    +-----------------+------------------------------------------------------------------------+
    | Field           | Value                                                                  |
    +-----------------+------------------------------------------------------------------------+
    | created_at      | 2024-03-04T13:28:22Z                                                   |
    | description     | group-for-everyone                                                     |
    | id              | b6a3834a-f89c-47a9-9ed6-ca89e93701c4                                   |
    | name            | group-for-everyone                                                     |
    | project_id      | 15f2ab0eaa5b4372b759bde609e86224                                       |
    | revision_number | 2                                                                      |
    | rules           | created_at='2024-03-04T13:28:22Z', direction='egress',                 |
    |                 | ethertype='IPv6', id='0cd433a9-57a0-4ee5-95b3-31990c408dc2',           |
    |                 | standard_attr_id='128', updated_at='2024-03-04T13:28:22Z'              |
    |                 | created_at='2024-03-04T13:28:22Z', direction='egress',                 |
    |                 | ethertype='IPv4', id='2cd70211-c154-4165-bdd2-5f8b0ac5f10c',           |
    |                 | standard_attr_id='129', updated_at='2024-03-04T13:28:22Z'              |
    |                 | created_at='2024-03-04T13:43:47Z', direction='ingress',                |
    |                 | ethertype='IPv4', id='9b044624-85f9-493b-a706-bb16e75ed851',           |
    |                 | normalized_cidr='0.0.0.0/0', port_range_max='80', port_range_min='80', |
    |                 | protocol='tcp', remote_ip_prefix='0.0.0.0/0', standard_attr_id='135',  |
    |                 | updated_at='2024-03-04T13:43:47Z'                                      |
    | shared          | True                                                                   |
    | stateful        | True                                                                   |
    | tags            | []                                                                     |
    | updated_at      | 2024-03-04T13:43:47Z                                                   |
    +-----------------+------------------------------------------------------------------------+
    

    Conclusion: A security group can be shared with all projects by an admin. But due to the programming of the sharing algorithm, everyone can now edit the security group rules. As this is about the sharing part of the network rbac endpoint, I consider this is wanted by Neutron. From my perspective, I think that using the network rbac sharing would lead to way more harm than good.

  12. josephineSei commented on Mar 12, 2024

    @josephineSei
    ContributorAuthor

    I looked over the current state of the DR and the documentation. We only need a decision in the IaaS meeting I think, after that the DR can be finished and merged.

    We already have 3 people voting for having a documentation only, as we see no chance for a standard. The way security groups and the network rbac endpoint work simply do not allow a non-violatable standard.

  13. josephineSei commented on Mar 25, 2024

    @josephineSei
    ContributorAuthor

    As discussed in the DR I adjusted the guide to fulfill the requirement of having not too explicit examples and focus more on how to build a good security-focused setup of security groups for a users VM.

  14. josephineSei commented on Apr 8, 2024

    @josephineSei
    ContributorAuthor

    @artificial-intelligence , @bitkeks the docs guide was merged while i was on vacation, can you both please look over the guide and tell me, whether you think it is security focused enough?
    Original PR: https://github.com/SovereignCloudStack/docs/pull/142/files

    And I cannot find the guide on the docs pages, maybe a link is missing somewhere.

  15. josephineSei commented on Apr 22, 2024

    @josephineSei
    ContributorAuthor

    @artificial-intelligence and/or @bitkeks could you please hava look at the pull request I added you two as reviewers for and voice your opinion?

  16. artificial-intelligence commented on Apr 23, 2024

    @artificial-intelligence
    Contributor

    It's mostly okay I would say. I would simplify some of the wording, but that's a nit imho.

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

Metadata

Metadata

Assignees

Labels

SCS-VP10

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions