检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
Using FunctionGraph to Encrypt and Decrypt Files in OBS Introduction Preparation Building a Program Adding an Event Source Processing Files Parent topic: Data Processing Practices
Customer master key (CMK): You can select a created key to encrypt the function code. For details about how to create a customer master key, see Creating a Custom Key.
Using FunctionGraph to Encrypt and Decrypt Files in OBS Use a function and an OBS Application Service trigger to encrypt and decrypt files in OBS.
Customer master key (CMK): You can select a created key to encrypt the function code. For details about how to create a customer master key, see Creating a Custom Key.
Customer master key (CMK): You can select a created key to encrypt the function code. For details about how to create a customer master key, see Creating a Custom Key.
Parent topic: Using FunctionGraph to Encrypt and Decrypt Files in OBS
to encrypt user code.
Customer master key (CMK): You can select a created key to encrypt the function code. For details about how to create a customer master key, see Creating a Custom Key.
To include sensitive information such as passwords, encrypt them first to prevent leakage. Parameters that will be passed in JSON format in the body.
If the code to be uploaded contains sensitive information (such as account passwords), encrypt the sensitive information to prevent leakage. The maximum file size is 10 MB.
Parent topic: Using FunctionGraph to Encrypt and Decrypt Files in OBS
Sensitive Information Protection If your code or configuration contains sensitive information, such as AK/SK, token, and password, encrypt environment variables.
This parameter is mandatory only when code_type is set to jar or zip. func_code Yes FuncCode object Response body of the FuncCode struct. depend_version_list No Array of strings Dependency version IDs. code_encrypt_kms_key_id No String ID of the KMS master key used to encrypt user
You can use these tags to filter function logs in LTS. enable_lts_log Boolean Indicates whether to enable the log feature. user_data_encrypt_kms_key_id String ID of the KMS master key used to encrypt environment variables.
Figure 2 Output file Parent topic: Using FunctionGraph to Encrypt and Decrypt Files in OBS
Using FunctionGraph to Compress Images in OBS Using FunctionGraph to Watermark Images in OBS Using FunctionGraph to Convert DIS Data Format and Store the Data to CloudTable Uploading Files Using APIs in FunctionGraph Converting Device Coordinate Data in IoTDA Using FunctionGraph to Encrypt
to encrypt user code.
Parent topic: Using FunctionGraph to Encrypt and Decrypt Files in OBS
Parent topic: Using FunctionGraph to Encrypt and Decrypt Files in OBS
Click Enable to encrypt the environment variable. The following encryption types are supported: AES: Encrypt environment variables using AES. You do not need to manually create a key. KMS: You can select an existing KMS key to encrypt the function environment variable.