By default show_image_direct_url MUST be set to False

Bug #1822540 reported by Pranali Deore
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Pranali Deore

Bug Description

Revealing image locations can present a GRAVE SECURITY RISK as image locations can sometimes include credentials.
Hence, this is set to 'False' by default in glance-api.conf from the beginning. Set this to True with EXTREME CAUTION and ONLY IF you know what you are doing.

Ref: https://docs.openstack.org/glance/pike/configuration/glance_api.html#DEFAULT.show_image_direct_url

In tripleo, this is set to "True" by default in patch[1]
[1]: https://review.openstack.org/#/c/226324/

But this should be requirement specific rather than setting to 'true' by default to prevent security risk.

Changed in tripleo:
assignee: nobody → Pranali Deore (pranali-deore)
Changed in tripleo:
milestone: none → stein-rc1
importance: Undecided → High
status: New → Triaged
tags: added: security-hardening
Changed in tripleo:
milestone: stein-rc1 → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Changed in tripleo:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/863142
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/d60969cb55344e9004721dee04ed1d685d95a39f
Submitter: "Zuul (22348)"
Branch: master

commit d60969cb55344e9004721dee04ed1d685d95a39f
Author: Alan Bishop <email address hidden>
Date: Thu Nov 24 10:06:19 2022 -0800

    Deploy separate glance-api services for OSSN-0090

    This patch adopts the recommendation outlined in OSSN-0090 [1], in
    which two instances of the glance-api service are deployed:
    - A "user facing" glance-api service, accessible via the Public
      keystone endpoint.
    - An "internal facing only" service, accessible via the Admin and
      Internal keystone endpoints.

    The user facing instance is configured so it does not report any image
    location information. This is achieved by configuring glance-api.conf
    with the show_image_direct_url and show_multiple_locations set to False.

    The internal service operates on a separate TCP port (defaults to 9293)
    with its own glance-api.conf that configures show_image_direct_url and
    show_multiple_locations set to True.

    In order for cinder and nova to have access to the image location data,
    both services are configured to access glance via the internal service.

    [1] https://wiki.openstack.org/wiki/OSSN/OSSN-0090

    Closes-Bug: #1822540
    Depends-On: Ideb5a951d538d9e2c7cca11dfe0e8b99520de959
    Depends-On: Ib6188505197d0a267dbd8c4d96f12f31f7b5c9f0
    Change-Id: Id093613f9d410eb3fe5564a724c0f75275eeb4e8

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/865885

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 18.0.0

This issue was fixed in the openstack/tripleo-heat-templates 18.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/865875
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/0ba612d07de84e95c0e11ef090bcd22f1da584e7
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 0ba612d07de84e95c0e11ef090bcd22f1da584e7
Author: Alan Bishop <email address hidden>
Date: Thu Nov 24 10:06:19 2022 -0800

    Deploy separate glance-api services for OSSN-0090

    This patch adopts the recommendation outlined in OSSN-0090 [1], in
    which two instances of the glance-api service are deployed:
    - A "user facing" glance-api service, accessible via the Public
      keystone endpoint.
    - An "internal facing only" service, accessible via the Admin and
      Internal keystone endpoints.

    The user facing instance is configured so it does not report any image
    location information. This is achieved by configuring glance-api.conf
    with the show_image_direct_url and show_multiple_locations set to False.

    The internal service operates on a separate TCP port (defaults to 9293)
    with its own glance-api.conf that configures show_image_direct_url and
    show_multiple_locations set to True.

    In order for cinder and nova to have access to the image location data,
    both services are configured to access glance via the internal service.

    [1] https://wiki.openstack.org/wiki/OSSN/OSSN-0090

    stable/zed:
      Backports include I456b4235242cae125f5ad4cd9cc7415f2699462c, which
      fixed a typo in the original patch.

    Closes-Bug: #1822540
    Depends-On: https://review.opendev.org/c/openstack/puppet-tripleo/+/865874
    Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/865873
    Change-Id: Id093613f9d410eb3fe5564a724c0f75275eeb4e8
    (cherry picked from commit d60969cb55344e9004721dee04ed1d685d95a39f)

tags: added: in-stable-zed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/865885
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/3605d45e417a77a1d0f153fbeffcbb283ec85fe6
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 3605d45e417a77a1d0f153fbeffcbb283ec85fe6
Author: Alan Bishop <email address hidden>
Date: Thu Nov 24 10:06:19 2022 -0800

    Deploy separate glance-api services for OSSN-0090

    This patch adopts the recommendation outlined in OSSN-0090 [1], in
    which two instances of the glance-api service are deployed:
    - A "user facing" glance-api service, accessible via the Public
      keystone endpoint.
    - An "internal facing only" service, accessible via the Admin and
      Internal keystone endpoints.

    The user facing instance is configured so it does not report any image
    location information. This is achieved by configuring glance-api.conf
    with the show_image_direct_url and show_multiple_locations set to False.

    The internal service operates on a separate TCP port (defaults to 9293)
    with its own glance-api.conf that configures show_image_direct_url and
    show_multiple_locations set to True.

    In order for cinder and nova to have access to the image location data,
    both services are configured to access glance via the internal service.

    [1] https://wiki.openstack.org/wiki/OSSN/OSSN-0090

    stable/zed:
      Backports include I456b4235242cae125f5ad4cd9cc7415f2699462c, which
      fixed a typo in the original patch.

    stable/wallaby:
      Minor conflicts were due to using the hiera() versus lookup() functions.
      The biggest conflict was due to Ibf2e0d183dd51421c4feb7467c3c01fb416d2965,
      in which the endpoint map is no longer generated from endpoint_data.yaml
      (as it is in wallaby).

    Closes-Bug: #1822540
    Depends-On: https://review.opendev.org/c/openstack/puppet-tripleo/+/865884
    Depends-On: https://review.opendev.org/c/openstack/tripleo-common/+/865883
    Change-Id: Id093613f9d410eb3fe5564a724c0f75275eeb4e8
    (cherry picked from commit d60969cb55344e9004721dee04ed1d685d95a39f)
    (cherry picked from commit 0ba612d07de84e95c0e11ef090bcd22f1da584e7)

tags: added: in-stable-wallaby
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.