Disable CIFS CI type in XLD

I am not sure if we can hide it as it is a part of the core overthere lib.
The good news is, we can hide properties in CIFS host which will disable the user to use the CIFS connection. This apply for other CI types as well.
We can hide properties like username, address, port, password(done in synthetic.xml file attached)
Assuming you don’t have any customization in your ext directory, if yes please add the below section in your existing synthetic.xml file.
After changes restart XLD.

My ext/synthetic.xml file to make properties hidden

<?xml version='1.0' encoding='UTF-8'?>
<!--
    Note: If you modify this file, you must restart the XL Deploy server.
-->
<synthetic xsi:schemaLocation="http://www.xebialabs.com/deployit/synthetic synthetic.xsd" xmlns="http://www.xebialabs.com/deployit/synthetic" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
     <type-modification type="overthere.CifsHost">
     <property name="address" kind="string" default="STRICTLY PROHIBITED/Use SMB HOST" hidden="true" />
     <property name="username" kind="string" default="no" hidden="true" />
     <property name="password" kind="string" default="no" hidden="true" />
     <property name="port" kind="integer" default="223" hidden="true" />
    </type-modification>
</synthetic>

Not sure on the timing of this post but I love it.

As always you are the man
Kevin

1 Like