Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 937761 Details for
Bug 1099748
CVE-2014-3801 openstack-heat: authenticated information leak in Heat
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
havana patch
havana.patch (text/plain), 2.18 KB, created by
Garth Mollett
on 2014-09-15 23:53:00 UTC
(
hide
)
Description:
havana patch
Filename:
MIME Type:
Creator:
Garth Mollett
Created:
2014-09-15 23:53:00 UTC
Size:
2.18 KB
patch
obsolete
>From 7e114a38712da8947ee7ad93eabda34f5e4aa65a Mon Sep 17 00:00:00 2001 >From: Angus Salkeld <angus.salkeld@rackspace.com> >Date: Thu, 1 May 2014 11:20:55 +1000 >Subject: Don't dynamically create provider types in the global env > >Only support this in user environments. >Note: this is only when you have the following in your template >resources: > thingy: > type: http://example.com/foo.template > >Doing this will avoid tenant-specific provider template URLs being >shown globally in the resource-type listing. > >Co-Authored-By: Angus Salkeld <angus.salkeld@rackspace.com> >Closes-Bug: #1311223 >Change-Id: Ifa18108afacbda390b19b46a8f41bc4f018e95d6 >(cherry picked from commit a02ff20509171346d2a1d2a9df7c81aada134c52) > >diff --git a/heat/engine/environment.py b/heat/engine/environment.py >index 6dd73f0..db9f2e2 100644 >--- a/heat/engine/environment.py >+++ b/heat/engine/environment.py >@@ -187,7 +187,10 @@ class ResourceRegistry(object): > registry[name] = info > > def iterable_by(self, resource_type, resource_name=None): >- if resource_type.endswith(('.yaml', '.template')): >+ is_templ_type = resource_type.endswith(('.yaml', '.template')) >+ if self.global_registry is not None and is_templ_type: >+ # we only support dynamic resource types in user environments >+ # not the global environment. > # resource with a Type == a template > # we dynamically create an entry as it has not been registered. > if resource_type not in self._registry: >diff --git a/heat/tests/test_provider_template.py b/heat/tests/test_provider_template.py >index 500cc59..e2af880 100644 >--- a/heat/tests/test_provider_template.py >+++ b/heat/tests/test_provider_template.py >@@ -398,6 +398,8 @@ class ProviderTemplateTest(HeatTestCase): > self.assertIn(attrib, templ_resource.attributes) > for k, v in json_snippet.get("Properties").items(): > self.assertEqual(v, templ_resource.properties[k]) >+ self.assertNotIn('WordPress_Single_Instance.yaml', >+ resources.global_env().registry._registry) > > def test_system_template_retrieve_by_file(self): > # make sure that a TemplateResource defined in the global environment
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1099748
: 937761