Commit b233978a authored by Ivan Tyagov's avatar Ivan Tyagov

Make it possible to configure if default (open) security model is to be...

Make it possible to configure if default (open) security model is to be installed for Wendelin's Data Lake. Default is not install.
parent 68d3efee
......@@ -25,13 +25,15 @@ if kw.get('setup_data_lake'):
update_catalog=False,
install_dependency=True,
)
configuration_save.addConfigurationItem(
"Standard BT5 Configurator Item",
title='erp5_wendelin_data_lake_ingestion_default_security_model',
bt5_id='erp5_wendelin_data_lake_ingestion_default_security_model',
update_catalog=False,
install_dependency=True,
)
# add default security model - "open" one
if kw.get('setup_data_lake_default_security_model'):
configuration_save.addConfigurationItem(
"Standard BT5 Configurator Item",
title='erp5_wendelin_data_lake_ingestion_default_security_model',
bt5_id='erp5_wendelin_data_lake_ingestion_default_security_model',
update_catalog=False,
install_dependency=True,
)
# setup 'tutorial'
if kw.get('setup_wendelin_tutorial'):
......
......@@ -83,6 +83,7 @@
<value>
<list>
<string>your_setup_data_lake</string>
<string>your_setup_data_lake_default_security_model</string>
<string>your_setup_wendelin_tutorial</string>
</list>
</value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="CheckBoxField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>your_setup_data_lake_default_security_model</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
<item>
<key> <string>required_not_found</string> </key>
<value> <string>This field is mandatory.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string>Set up the default security model for Data Lake: "Open - all can download but only registered users can upload" ?\n
If you are not sure you can leave the defaults and configure later.</string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>required</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Set up default data lake security model ?</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -211,7 +211,7 @@
<key> <string>default</string> </key>
<value> <string>WARNING: Setup of Data Notebook module for Jupyter integration exposes ERP5 to remote code execution and should be used carefully. Please note that still proper authentication is needed for remote code execution.\n
\n
WARNING: Setup of data lake functionality will enable the default data lake\'s security model which would allow anonymous users to register to your site (of course with proper email validation step!). Please note that this model is quite restrictive though and applies generally to Data Lake functionality only.</string> </value>
WARNING: Setup of data lake\'s default security model would allow anonymous users to register to your site (of course with proper email validation step!) and download uploaded Data Sets and Date Streams. Please make sure that this is well understood, if in doubt you can leave defaults and not install it!</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment