File tree 3 files changed +18
-2
lines changed
3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 10
10
<resource >Thai_S3::config_s3</resource >
11
11
<group id =" general" type =" text" sortOrder =" 10" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
12
12
<label >General</label >
13
- <field id =" access_key" type =" text " showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
13
+ <field id =" access_key" type =" obscure " sortOrder = " 10 " showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
14
14
<label >Access Key</label >
15
+ <backend_model >Magento\Config\Model\Config\Backend\Encrypted</backend_model >
15
16
</field >
16
- <field id =" secret_key" type =" text " sortOrder =" 20" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
17
+ <field id =" secret_key" type =" obscure " sortOrder =" 20" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
17
18
<label >Secret Key</label >
19
+ <backend_model >Magento\Config\Model\Config\Backend\Encrypted</backend_model >
18
20
</field >
19
21
<field id =" bucket" type =" text" sortOrder =" 30" showInDefault =" 1" showInWebsite =" 1" showInStore =" 1" >
20
22
<label >Bucket</label >
Original file line number Diff line number Diff line change 2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:module:Magento_Store:etc/config.xsd" >
3
3
<default >
4
4
<system >
5
+ <thai_s3 >
6
+ <general >
7
+ <access_key backend_model =" Magento\Config\Model\Config\Backend\Encrypted" />
8
+ <secret_key backend_model =" Magento\Config\Model\Config\Backend\Encrypted" />
9
+ </general >
10
+ </thai_s3 >
5
11
<media_storage_configuration >
6
12
<allowed_resources >
7
13
<attribute_image_folder >attribute</attribute_image_folder >
Original file line number Diff line number Diff line change 52
52
<type name =" Magento\Captcha\Model\DefaultModel" >
53
53
<plugin name =" thai_s3_model_captcha_defaultmodel_plugin" type =" Thai\S3\Model\Captcha\DefaultModel\Plugin" />
54
54
</type >
55
+ <type name =" Magento\Config\Model\Config\TypePool" >
56
+ <arguments >
57
+ <argument name =" sensitive" xsi : type =" array" >
58
+ <item name =" thai_s3/general/access_key" xsi : type =" string" >1</item >
59
+ <item name =" thai_s3/general/secret_key" xsi : type =" string" >1</item >
60
+ </argument >
61
+ </arguments >
62
+ </type >
55
63
</config >
You can’t perform that action at this time.
0 commit comments