No. Anything in gateway-site.xml is basically there as defaults and can be
referenced from topologies. Any topology can be configured independently of
what is in gateway-site.xml. Changes in manager.xml would be preferred over
what is in gateway-site if they are topology specific.

Kevin Risden


On Mon, Apr 1, 2019 at 2:51 PM Odon Copon <[email protected]> wrote:

> Thanks Kevin,
> So, does it mean that gateway-site.xml o overwrites any configuration set
> as part of manager.xml?
>
> Thanks
>
> On Mon, 1 Apr 2019, 19:33 Kevin Risden, <[email protected]> wrote:
>
>> The UI configuration comes from "topologies/manager.xml". If you look at
>> the manager.xml, it can reference configurations in the global
>> "conf/gateway-site.xml" if it wants to. Topologies don't need to though.
>> You could technically move the group config stuff from
>> "conf/gateway-site.xml" to the manager.xml file.
>>
>> The example topologies that ship with Knox show that it is possible to
>> configure some settings in "conf/gateway-site.xml" but it is not necessary.
>>
>> The example is one you already referenced which is the group lookup:
>> *
>> https://github.com/apache/knox/blob/master/gateway-release/home/conf/gateway-site.xml#L94
>> *
>> https://github.com/apache/knox/blob/master/gateway-release/home/conf/topologies/manager.xml#L60
>>
>> Kevin Risden
>>
>>
>> On Mon, Apr 1, 2019 at 11:33 AM Odon Copon <[email protected]> wrote:
>>
>>> Hi Kevin,
>>> Thank for the clarification.
>>> What do you mean by "One of those is the group configurations"? Would be
>>> possible to provide an example?
>>>
>>> Based on your comment, does it mean the LDAP configuration to access the
>>> UI comes from "conf/gateway-site.xml"?
>>>
>>> Thanks!
>>>
>>> On Mon, 1 Apr 2019 at 16:16,
>>> Kevin Risden
>>> <[email protected]> wrote:
>>>
>>>> "conf/gateway-site.xml" has configurations that are global to the
>>>> entire Knox instance.
>>>>
>>>> "topologies/abc.xml" are configurations specific to the topology. The
>>>> topologies can reference some configurations in the global
>>>> "conf/gateway-site.xml". One of those is the group configurations. This
>>>> would be useful to say have multiple topologies not have to repeat the same
>>>> configuration over and over again. On the other hand, you can so choose to
>>>> duplicate the configuration in each topology.
>>>>
>>>> Kevin Risden
>>>>
>>>>
>>>> On Mon, Apr 1, 2019 at 11:13 AM Odon Copon <[email protected]> wrote:
>>>>
>>>>> Hi,
>>>>> What are the main differences between "conf/gateway-site.xml",
>>>>> "topologies/manager.xml" and "topologies/admin.xml"?
>>>>> I'm still trying to understand how all work together in Knox.
>>>>>
>>>>> Per example, I can see there's a section for LDAP configuration on
>>>>> "topologies/admin.xml" but also as part of "conf/gateway-site.xml". Which
>>>>> one affects what exactly?
>>>>>
>>>>> Thanks
>>>>>
>>>>

Reply via email to