From c0b69f64b83d96ca26afe239a7e5956aabb4e2d6 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 24 Oct 2019 12:04:47 -0400 Subject: [PATCH] Error when noderange tries to use secret secret. cannot be used in expressions, provide an error in such a case. --- confluent_server/confluent/config/configmanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_server/confluent/config/configmanager.py b/confluent_server/confluent/config/configmanager.py index 0fbdcf7d..f73dcc53 100644 --- a/confluent_server/confluent/config/configmanager.py +++ b/confluent_server/confluent/config/configmanager.py @@ -1137,6 +1137,8 @@ class ConfigManager(object): attribute, match = expression.split('=') else: raise Exception('Invalid Expression') + if attribute.startswith('secret.'): + raise Exception('Filter by secret attributes is not supported') for node in nodes: try: currvals = [self._cfgstore['nodes'][node][attribute]['value']]