Organization Settings

更新时间:
复制 MD 格式

The Organization Settings page lets you obtain your organization's AccessKey, configure the data collection service, and set an AES key.

  1. In the upper-right corner of the page, click the image icon and choose Organization Management > Organization Settings.image

  2. AccessKey: View your organization's AccessKey ID and AccessKey secret.

  3. Collection Service Settings: If you use Alibaba Cloud Quick Tracking to collect and report data on user behavior events, you can enable the data backflow synchronization service to sync processed behavioral data to an ADB 3.0 database. You can also enable the collection log synchronization service to sync data collection logs to a MaxCompute project. Both services are disabled by default.

    Click Edit, configure the following settings, and then click Save.

    Note

    The data backflow synchronization service and the collection log synchronization service can be enabled independently.

    • Enable and configure the data backflow synchronization service.

      • Turn on the Data Backflow Synchronization Service switch.

      • Select the destination database. ADB 3.0 is supported.

      • Customize the table name suffix for data synchronization. You can customize the suffix only during initialization. After it is saved, it cannot be modified. Modifying the suffix will affect behavioral data synchronization.

      • The time of the last successful data synchronization is displayed on the right. The corresponding dimension table names and field names are displayed below. These dimension tables are automatically processed based on the behavioral data synchronized to ADB.

      • Set the Data Storage Period.

        Note
        • If you reduce the storage period, for example, from 60 to 45 days, data from the oldest 16 days is deleted during the next day's synchronization.

        • If a synchronization error occurs, an alert is displayed in the Message Center. For more information, see Log Synchronization Alerts.

    • Enable and configure the collection log synchronization service. For information about the log format, see Real-time logs.

      • Turn on the Collection Log Synchronization Service switch.

      • Enter the AccessKey ID, AccessKey secret, and the name of the MaxCompute project. To obtain the AccessKey information, log on to the Resource Access Management (RAM) console with your Alibaba Cloud account.

  4. AES Key Settings: Enter a 16-character AES key and click Save.

    Obtain the key from the developer who performs AES encryption. For instructions on AES encryption, see AES encryption functions below.

    When you push a dataset or an audience to Data Bank or use it for advertising and marketing, the AES key is used for decryption if the ID field is encrypted with AES.

    AES encryption functions

    AES is a common symmetric encryption algorithm that uses the same key for encryption and decryption.

    When the ID field is stored in MaxCompute, ADB 3.0, or MySQL, you can use the following AES encryption and decryption functions to encrypt and decrypt the ID.

    Important

    • Quick Audience supports only 16-character keys. The key can contain the characters 0-9 and A-F (case-insensitive).

    • Only a single key is supported. Keep the key secure. Changing the key is not supported and may cause some data to become undecryptable.

    • For database types other than MaxCompute, ADB 3.0, and MySQL, see the official documentation for the specific database to check if it provides AES encryption and decryption functions.

    MaxCompute

    Before you perform AES encryption or decryption, download the AES encryption and decryption function code package. Then, run the following statements in the MaxCompute command line client to register the user-defined functions from the code package:

    add jar crypt-1.0-SNAPSHOT.jar as crypt.jar;
    create function qa_aes_encrypt as 'com.aliyun.quicka.crypt.AESEncrypt' using 'crypt.jar';
    create function qa_aes_decrypt as 'com.aliyun.quicka.crypt.AESDecrypt' using 'crypt.jar';

    AES encryption and decryption example:

    # Encrypt 'China' and convert it to Base64. 'xxxxxxxxxxxxxxxx' is the key.
    select qa_aes_encrypt('China', 'xxxxxxxxxxxxxxxx');
    # Result: 
    CjUlHjFp8lEUOfQ4k5eCpA== 
    
    # Decrypt 'CjUlHjFp8lEUOfQ4k5eCpA=='. 'xxxxxxxxxxxxxxxx' is the same key.
    select qa_aes_decrypt('CjUlHjFp8lEUOfQ4k5eCpA==','xxxxxxxxxxxxxxxx');
    # Result: 
    China

    ADB 3.0

    ADB 3.0 provides built-in AES encryption and decryption functions that you can use directly.

    AES encryption and decryption example:

    # Encrypt 'China' and convert it to Base64. 'xxxxxxxxxxxxxxxx' is the key.
    select TO_BASE64(aes_encrypt(CAST('China' AS VARBINARY), 'xxxxxxxxxxxxxxxx'))
    # Result: 
    CjUlHjFp8lEUOfQ4k5eCpA== 
    
    # Decrypt 'CjUlHjFp8lEUOfQ4k5eCpA=='. 'xxxxxxxxxxxxxxxx' is the same key.
     select aes_decrypt(FROM_BASE64('CjUlHjFp8lEUOfQ4k5eCpA=='), 'xxxxxxxxxxxxxxxx') 
    # Result: 
    China

    MySQL

    MySQL provides built-in AES encryption and decryption functions that you can use directly.

    AES encryption and decryption example:

    # Encrypt 'China' and convert it to Base64. 'xxxxxxxxxxxxxxxx' is the key.
    select TO_BASE64(AES_ENCRYPT('China', 'xxxxxxxxxxxxxxxx'));
    # Result: 
    CjUlHjFp8lEUOfQ4k5eCpA== 
    
    # Decrypt 'CjUlHjFp8lEUOfQ4k5eCpA=='. 'xxxxxxxxxxxxxxxx' is the same key.
    select AES_DECRYPT(FROM_BASE64('CjUlHjFp8lEUOfQ4k5eCpA=='),'xxxxxxxxxxxxxxxx')
    # Result: 
    China