def mask_secrets(self, value):
        """
        Process the model dictionary and mask secret values.

        :type value: ``dict``
        :param value: Document dictionary.

        :rtype: ``dict``
        """
        result = copy.deepcopy(value)

        config_schema = config_schema_access.get_by_pack(result["pack"])

        secret_parameters = get_secret_parameters(parameters=config_schema.attributes)
        result["values"] = mask_secret_parameters(
            parameters=result["values"], secret_parameters=secret_parameters
        )

        return result

        Process the model dictionary and mask secret values.

        :type value: ``dict``
        :param value: Document dictionary.

        :rtype: ``dict``
        
st2common/st2common/models/db/pack.py