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 <odonco...@gmail.com> 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
> <kris...@apache.org> 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 <odonco...@gmail.com> 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