text
stringlengths
79
3.72M
<vulnerable_code> import pytest from airflow.models import Connection from airflow.providers.atlassian.jira.hooks.jira import JiraHook from airflow.utils import db pytestmark = pytest.mark.db_test jira_client_mock = Mock(name="jira_client") class TestJiraHook: def setup_method(self): db.merge_conn( ...
<vulnerable_code> func=lazy_load_command("airflow.cli.commands.provider_command.lazy_loaded"), args=(ARG_VERBOSE,), ), ) <commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces lib...
<vulnerable_code> data=list(ProvidersManager().auth_backend_module_names), output=args.output, mapper=lambda x: { "api_auth_backand_module": x, }, ) <commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql rep...
<vulnerable_code> self._field_behaviours: dict[str, dict] = {} self._extra_link_class_name_set: set[str] = set() self._logging_class_name_set: set[str] = set() self._secrets_backend_class_name_set: set[str] = set() self._executor_class_name_set: set[str] = set() self._prov...
<vulnerable_code> notification_class_names = list(provider_manager.notification) assert len(notification_class_names) > 5 @patch("airflow.providers_manager.import_string") def test_optional_feature_no_warning(self, mock_importlib_import_string): with self._caplog.at_level(logging.WARNING...
<vulnerable_code> "tg_2.my_work": "skipped", } assert states == expected<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and...
<vulnerable_code> if TYPE_CHECKING: from google.api_core.retry import Retry class DataformHook(GoogleBaseHook): metadata=metadata, ) @GoogleBaseHook.fallback_to_default_project_id def cancel_workflow_invocation( self, f"projects/{project_id}/locations/{region}/repo...
<vulnerable_code> MakeDirectoryResponse, Repository, WorkflowInvocation, Workspace, WriteFileResponse, ) return WorkflowInvocation.to_dict(result) class DataformCancelWorkflowInvocationOperator(GoogleCloudBaseOperator): """ Requests cancellation of a running WorkflowInvocation.<comm...
<vulnerable_code># under the License. from __future__ import annotations from unittest import mock import pytest from google.api_core.gapic_v1.method import DEFAULT from airflow.providers.google.cloud.hooks.dataform import DataformHook from tests.providers.google.cloud.utils.base_gcp_mock import mock_base_gcp_hook_d...
<vulnerable_code> DataformGetWorkflowInvocationOperator, DataformInstallNpmPackagesOperator, DataformMakeDirectoryOperator, DataformRemoveDirectoryOperator, DataformRemoveFileOperator, DataformWriteFileOperator, HOOK_STR = "airflow.providers.google.cloud.operators.dataform.DataformHook" WORKFLOW...
<vulnerable_code> DataformGetWorkflowInvocationOperator, DataformInstallNpmPackagesOperator, DataformMakeDirectoryOperator, DataformRemoveDirectoryOperator, DataformRemoveFileOperator, DataformWriteFileOperator, ) # [END howto_operator_get_workflow_invocation] create_workflow_invocat...
<vulnerable_code> import attr import pendulum from sqlalchemy import select, update from sqlalchemy.exc import OperationalError from sqlalchemy.orm.session import make_transient from tabulate import tabulate :return: An iterable of expanded TaskInstance per MappedTask """ executor = self.job.exe...
<vulnerable_code> flask_app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(minutes=settings.get_session_lifetime_config()) webserver_config = conf.get_mandatory_value("webserver", "config_file") # Enable customizations in webserver_config.py to be applied via Flask.current_app. with flask_app.app_con...
<vulnerable_code> except PrepareReleaseDocsUserQuitException: break else: if provider_metadata.get("removed"): removed_packages.append(provider_id) else: success_packages.append(provider_id) if not provider_metadata: get_cons...
<vulnerable_code> refresh_provider_metadata_from_yaml_file(provider_yaml_path) def get_provider_packages_metadata() -> dict[str, dict[str, Any]]: """ Load all data from providers files @lru_cache def get_suspended_provider_ids() -> list[str]: return [ provider_id for provider_id, provi...
<vulnerable_code> assert provider_info_dict["name"] == "Amazon" assert provider_info_dict["package-name"] == "apache-airflow-providers-amazon" assert "Amazon" in provider_info_dict["description"] assert provider_info_dict["suspended"] is False assert provider_info_dict["filesystems"] == ["airflow.pro...
<vulnerable_code> removed_provider_ids = [] for provider_path in PROVIDERS_DIR.rglob("provider.yaml"): provider_yaml = yaml.safe_load(provider_path.read_text()) if provider_yaml.get("removed"): removed_provider_ids.append( provider_yaml["package-name"][len("apache-airf...
<vulnerable_code> jsonschema.validate(provider, schema=schema) except jsonschema.ValidationError: raise Exception(f"Unable to parse: {provider_yaml_path}.") if provider["suspended"] and not include_suspended: continue provider_yaml_dir = os.path.dirname(provide...
<vulnerable_code> for provider_file in AIRFLOW_PROVIDERS_DIR.rglob("provider.yaml"): provider_name = str(provider_file.parent.relative_to(AIRFLOW_PROVIDERS_DIR)).replace(os.sep, ".") provider_info = yaml.safe_load(provider_file.read_text()) if not provider_info["suspended"]: ALL_P...
<vulnerable_code> os.sep, "." ) provider_info = yaml.safe_load(provider_file.read_text()) if not provider_info["suspended"]: ALL_PROVIDERS[provider_name] = provider_info else: suspended_paths.appen...
<vulnerable_code> jsonschema.validate(provider, schema=schema) except jsonschema.ValidationError: raise Exception(f"Unable to parse: {rel_path}.") if not provider.get("suspended"): result[rel_path] = provider else: suspended_providers.add(provider["...
<vulnerable_code> suspended_providers = [] for provider_path in AIRFLOW_PROVIDERS_ROOT.rglob("provider.yaml"): provider_yaml = yaml.safe_load(provider_path.read_text()) if provider_yaml.get("suspended"): suspended_providers.append( provider_path.parent.relative_to(AIRF...
<vulnerable_code>find_airflow_sources_root_to_operate_on() create_directories_and_files() from airflow_breeze.commands import developer_commands # noqa from airflow_breeze.commands.ci_commands import ci_group # noqa from airflow_breeze.commands.ci_image_commands import ci_image # noqa<commit_title>[PATCH 001/111] A...
<vulnerable_code> op["how-to-guide"] for op in provider["transfers"] if "how-to-guide" in op ) if suspended_providers: console.print("[yellow]Suspended providers:[/]") console.print(suspended_providers) expected_doc_files = itertools.chain(<commit_title>[PATCH 001/111...
<vulnerable_code> dependencies = json.load(f) provider_dict = {} for key, value in dependencies.items(): if value.get(DEPS): apply_pypi_suffix_to_airflow_packages(value[DEPS]) if CURRENT_PYTHON_VERSION not in value["excluded-python-versions"] or skip_py...
<vulnerable_code> import attr import pendulum from sqlalchemy import select, update from sqlalchemy.exc import OperationalError from sqlalchemy.orm.session import make_transient from tabulate import tabulate :return: An iterable of expanded TaskInstance per MappedTask """ executor = self.job.exe...
<vulnerable_code> ); // (#...) el.innerHTML = el.innerHTML.replace( /\(#([\d]+)\)/g, `<a href="https://github.com/apache/airflow/pull/$1">(#$1)</a>` ); }; })<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is...
<vulnerable_code> tags=["synapse", "example"], ) as dag: begin = EmptyOperator(task_id="begin") run_pipeline1 = AzureSynapseRunPipelineOperator( task_id="run_pipeline1", azure_synapse_conn_id="azure_synapse_connection", pipeline_name="Pipeline 1", azure_synapse_workspace_dev_...
<vulnerable_code># under the License. from __future__ import annotations from opsgenie_sdk import ( AlertApi, ApiClient, except OpenApiException as e: self.log.exception("Exception when calling AlertApi->delete_alert: %s\n", e) raise e<commit_title>[PATCH 001/111] Add zlib1g-dev...
<vulnerable_code> raise SystemExit(f"Configuration {args.conf!r} is not valid JSON. Error: {e}") execution_date = args.execution_date or timezone.utcnow() dag = dag or get_dag(subdir=args.subdir, dag_id=args.dag_id) dag.test(execution_date=execution_date, run_conf=run_conf, session=session) s...
<vulnerable_code>from airflow.triggers.temporal import DateTimeTrigger, TimeDeltaTrigger from airflow.utils import timezone from airflow.utils.session import create_session from airflow.utils.types import DagRunType from tests.models import TEST_DAGS_FOLDER from tests.test_utils.config import conf_vars ] ...
<vulnerable_code># - https://endoflife.date/amazon-eks # - https://endoflife.date/azure-kubernetes-service # - https://endoflife.date/google-kubernetes-engine ALLOWED_KUBERNETES_VERSIONS = ["v1.25.11", "v1.26.6", "v1.27.3", "v1.28.0"] ALLOWED_EXECUTORS = [ "LocalExecutor", "KubernetesExecutor",<commit_tit...
<vulnerable_code>import itertools import json import os from collections import defaultdict from typing import TYPE_CHECKING @suppress_logs_and_warning @providers_configuration_loaded def roles_export(args): """ Export all the roles from the database to a file. Note, this function does not export the perm...
<vulnerable_code> role: Role = self.appbuilder.sm.find_role("FakeTeamC") assert len(role.permissions) == 0 def test_cli_import_roles(self, tmp_path): fn = tmp_path / "import_roles.json" fn.touch() roles_list = ["FakeTeamA", "FakeTeamB"] with open(fn, "w") as outfile: ...
<vulnerable_code> "nullMarker", "quote", "encoding", ], "DATASTORE_BACKUP": ["projectionFields"], "NEWLINE_DELIMITED_JSON": ["autodetect", "ignoreUnknownValues"],<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36...
<vulnerable_code>import posixpath from functools import wraps from shutil import copyfileobj from typing import TYPE_CHECKING import smbclient """Push local file to samba server.""" with open(local_filepath, "rb") as f, self.open_file(destination_filepath, mode="wb") as g: copyfileobj(f, g...
<vulnerable_code> env["PGPASSWORD"] = url.password or "" env["PGDATABASE"] = url.database execute_interactive(["psql"], env=env) elif url.get_backend_name() == "mssql": env = os.environ.copy() env["MSSQL_CLI_SERVER"] = url.host env["MSSQL_CLI_DATABASE"] = url.database ...
<vulnerable_code> executor = self.job.executor # list of tuples (dag_id, task_id, execution_date, map_index) of running tasks in executor buffered_events = list(executor.get_event_buffer().items()) if session.get_bind().dialect.name == "mssql": # SQL Server doesn't support mul...
<vulnerable_code> TaskOutletDatasetReference, isouter=True, ) # MSSQL doesn't like it when we select a column that we haven't grouped by. All other DBs let us # group by id and select all columns. .group_by(DatasetModel if session.get_bind()...
<vulnerable_code> "state", "dag_id", postgresql_where=text("state='running'"), mssql_where=text("state='running'"), sqlite_where=text("state='running'"), ), # since mysql lacks filtered/partial indices, this creates a "state", ...
<vulnerable_code> __tablename__ = "dag_schedule_dataset_reference" __table_args__ = ( PrimaryKeyConstraint(dataset_id, dag_id, name="dsdr_pkey", mssql_clustered=True), ForeignKeyConstraint( (dataset_id,), ["dataset.id"], name="todr_dataset_fkey", o...
<vulnerable_code> "run_id", "map_index", name="rendered_task_instance_fields_pkey", mssql_clustered=True, ), ForeignKeyConstraint( [dag_id, task_id, run_id, map_index],<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#3649...
<vulnerable_code> select(cls.dag_id, func.json_extract(cls._data, "$.dag.dag_dependencies")) ) iterator = ((dag_id, json.loads(deps_data) if deps_data else []) for dag_id, deps_data in query) elif session.bind.dialect.name == "mssql": query = session.execute(se...
<vulnerable_code> Index("ti_pool", pool, state, priority_weight), Index("ti_job_id", job_id), Index("ti_trigger_id", trigger_id), PrimaryKeyConstraint( "dag_id", "task_id", "run_id", "map_index", name="task_instance_pkey", mssql_clustered=True ), ForeignKeyCons...
<vulnerable_code>import warnings from typing import TYPE_CHECKING from sqlalchemy import Column, ForeignKeyConstraint, Index, Integer, String, asc, desc, event, select, text from sqlalchemy.ext.associationproxy import association_proxy from sqlalchemy.orm import relationship return session.scalars( ...
<vulnerable_code> # separately, and enforce uniqueness with DagRun.id instead. Index("idx_xcom_key", key), Index("idx_xcom_task_instance", dag_id, task_id, run_id, map_index), PrimaryKeyConstraint( "dag_run_id", "task_id", "map_index", "key", name="xcom_pkey", mssql_clustered=...
<vulnerable_code> .exists() ) # Special case for MSSQL/Oracle (works on PG and MySQL > 8) if self.appbuilder.get_session.bind.dialect.name in ("mssql", "oracle"): return self.appbuilder.get_session.query(literal(True)).filter(q).scalar() return self.appbuilder.get_...
<vulnerable_code> import pendulum import pluggy import sqlalchemy from sqlalchemy import create_engine, exc, text from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.pool import NullPool expire_on_commit=False, ) ) if engine.dialect.name == "mssql": session = Sess...
<vulnerable_code> '"log" does not exist', # postgres "no such table", # sqlite "log' doesn't exist", # mysql "Invalid object name 'log'", # mssql ] error_is_ok = e.args and any(x in e.args[0] for x in expected) if not error_is_ok:<commit_title>[...
<vulnerable_code> We have to handle CTAS differently for different dialects. """ from sqlalchemy import column, select, table if dialect_name == "mssql": cte = source_query.cte("source") moved_data_tbl = table(target_table_name, *(column(c.name) for c in cte.columns)) ins = move...
<vulnerable_code> return f"CREATE TABLE {element.name} AS {compiler.process(element.query)}" @compiles(CreateTableAs, "mssql") def _compile_create_table_as__mssql(element, compiler, **kw): return f"WITH cte AS ( {compiler.process(element.query)} ) SELECT * INTO {element.name} FROM cte" def _build_query( ...
<vulnerable_code> import pendulum from dateutil import relativedelta from sqlalchemy import TIMESTAMP, PickleType, and_, event, false, nullsfirst, or_, true, tuple_ from sqlalchemy.dialects import mssql, mysql from sqlalchemy.sql import Select from sqlalchemy.types import JSON, Text, TypeDecorator, UnicodeText from ai...
<vulnerable_code>from markupsafe import Markup, escape from pendulum.datetime import DateTime from pendulum.parsing.exceptions import ParserError from sqlalchemy import Date, and_, case, desc, func, inspect, select, union_all from sqlalchemy.exc import IntegrityError from sqlalchemy.orm import joinedload from wtforms i...
<vulnerable_code> with conf_vars(config): settings.configure_orm() engine_args = {"arg": 1} if settings.SQL_ALCHEMY_CONN.startswith(("mysql", "mssql")): engine_args["isolation_level"] = "READ COMMITTED" mock_create_engine.assert_called_once_with( ...
<vulnerable_code> assert import_source == ConnectorSource.CUSTOM_PATH @pytest.mark.db_test @pytest.mark.backend("mssql", "mysql", "postgres") @pytest.mark.parametrize("executor", [FakeExecutor, FakeSingleThreadedExecutor]) def test_validate_database_executor_compatibility_general(self, monke...
<vulnerable_code> assert rtif_num == len(result) # Verify old records are deleted and only 'num_to_keep' records are kept # For other DBs,an extra query is fired in RenderedTaskInstanceFields.delete_old_records expected_query_count_based_on_db = ( expecte...
<vulnerable_code> def _get_lazy_xcom_access_expected_sql_lines() -> list[str]: backend = os.environ.get("BACKEND") if backend == "mssql": return [ "SELECT xcom.value", "FROM xcom", "WHERE xcom.dag_id = 'test_dag' AND xcom.run_id = 'test' " "AND xcom.task_i...
<vulnerable_code> lambda t: (t[0] == "remove_index" and t[1].name == "taskset_id"), # from test_security unit test lambda t: (t[0] == "remove_table" and t[1].name == "some_model"), # MSSQL default tables lambda t: (t[0] == "remove_table" and t[1].name == "spt_m...
<vulnerable_code> fix_ownership_using_docker, perform_environment_checks, ) from airflow_breeze.utils.path_utils import AIRFLOW_SOURCES_ROOT, MSSQL_TMP_DIR_NAME from airflow_breeze.utils.run_utils import run_command run_command(["docker", "system", "prune", "--all", "--force", "--volumes"]) run...
<vulnerable_code> ALLOWED_DOCKER_COMPOSE_PROJECTS, ALLOWED_INSTALLATION_PACKAGE_FORMATS, ALLOWED_MOUNT_OPTIONS, ALLOWED_MSSQL_VERSIONS, ALLOWED_MYSQL_VERSIONS, ALLOWED_POSTGRES_VERSIONS, ALLOWED_PYTHON_MAJOR_MINOR_VERSIONS, envvar="MOUNT_SOURCES", help="Choose scope of local sources t...
<vulnerable_code> option_integration, option_max_time, option_mount_sources, option_mssql_version, option_mysql_version, option_postgres_version, option_project_name, @option_integration @option_max_time @option_mount_sources @option_mssql_version @option_mysql_version @option_platform_single...
<vulnerable_code> "--backend", "--postgres-version", "--mysql-version", "--mssql-version", "--db-reset", ], }, "--backend", "--postgres-version", "--mysql-version", ...
<vulnerable_code> option_github_repository, option_integration, option_max_time, option_mssql_version, option_mysql_version, option_postgres_version, option_project_name, @option_github_repository @option_integration @option_max_time @option_mssql_version @option_mysql_version @option_postgre...
<vulnerable_code> option_answer, option_backend, option_dry_run, option_mssql_version, option_mysql_version, option_postgres_version, option_python, @option_backend @option_postgres_version @option_mysql_version @option_mssql_version @click.option("-C/-c", "--cheatsheet/--no-cheatsheet", help...
<vulnerable_code> option_include_success_outputs, option_integration, option_mount_sources, option_mssql_version, option_mysql_version, option_parallelism, option_postgres_version, @option_forward_credentials @option_postgres_version @option_mysql_version @option_mssql_version @option_integra...
<vulnerable_code> "--python", "--postgres-version", "--mysql-version", "--mssql-version", "--forward-credentials", ], }, "--python", "--postgres-version", "--mysql-version",...
<vulnerable_code>ALLOWED_ARCHITECTURES = [Architecture.X86_64, Architecture.ARM] # Database Backends used when starting Breeze. The "none" value means that invalid configuration # Is set and no database started - access to a database will fail. ALLOWED_BACKENDS = ["sqlite", "mysql", "postgres", "mssql", "none"] ALLOWED...
<vulnerable_code> ALLOWED_CONSTRAINTS_MODES_CI, ALLOWED_DOCKER_COMPOSE_PROJECTS, ALLOWED_INSTALLATION_PACKAGE_FORMATS, ALLOWED_MSSQL_VERSIONS, ALLOWED_MYSQL_VERSIONS, ALLOWED_POSTGRES_VERSIONS, ALLOWED_PYTHON_MAJOR_MINOR_VERSIONS, MOUNT_ALL, MOUNT_REMOVE, MOUNT_SELECTED, MSSQL...
<vulnerable_code> if "arm64" in DOCKER_DEFAULT_PLATFORM: if shell_params.backend == "mysql": get_console().print("\n[warn]MySQL use MariaDB client binaries on ARM architecture.[/]\n") elif shell_params.backend == "mssql": get_console().print("\n[error]MSSQL is not supported on...
<vulnerable_code>OUTPUT_LOG = Path(CACHE_TMP_FILE_DIR.name, "out.log") BREEZE_SOURCES_ROOT = AIRFLOW_SOURCES_ROOT / "dev" / "breeze" MSSQL_TMP_DIR_NAME = ".tmp-mssql" def create_volume_if_missing(volume_name: str): from airflow_breeze.utils.run_utils import run_command<commit_title>[PATCH 001/111] Add zlib1g-dev...
<vulnerable_code> CHICKEN_EGG_PROVIDERS, COMMITTERS, CURRENT_KUBERNETES_VERSIONS, CURRENT_MSSQL_VERSIONS, CURRENT_MYSQL_VERSIONS, CURRENT_POSTGRES_VERSIONS, CURRENT_PYTHON_MAJOR_MINOR_VERSIONS, DEFAULT_KUBERNETES_VERSION, DEFAULT_MSSQL_VERSION, DEFAULT_MYSQL_VERSION, DEFAULT_P...
<vulnerable_code> from airflow_breeze.global_constants import ( FLOWER_HOST_PORT, MSSQL_HOST_PORT, MYSQL_HOST_PORT, POSTGRES_HOST_PORT, REDIS_HOST_PORT, * {FLOWER_HOST_PORT} -> forwarded to Flower dashboard -> airflow:5555 * {POSTGRES_HOST_PORT} -> forwarded to Postgres database ...
<vulnerable_code>@pytest.mark.parametrize( "parameter, value, result, exception", [ ("backend", "mysql", (True, ["sqlite", "mysql", "postgres", "mssql", "none"]), None), ("backend", "xxx", (False, ["sqlite", "mysql", "postgres", "mssql", "none"]), None), ("python_major_minor_version", "3...
<vulnerable_code> Deprecated - use `on_finish_action` instead. :param termination_message_policy: The termination message policy of the base container. Default value is "File" :param active_deadline_seconds: The active_deadline_seconds which matches to active_deadline_seconds in V1PodSpec...
<vulnerable_code>class TestKubernetesPodOperator(BaseK8STest): @pytest.mark.parametrize("active_deadline_seconds", [10, 20]) def test_kubernetes_pod_operator_active_deadline_seconds(self, active_deadline_seconds): k = KubernetesPodOperator( task_id=f"test_task_{active_deadline_seconds}", ...
<vulnerable_code> [ "extra_provider_files_with_substitutions", "autoapi.extension", ] ) else:<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml c...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code> conn = self.get_conn() cur = conn.cursor() cur.execute( f""" LOAD DATA LOCAL INFILE '{tmp_file}' INTO TABLE {table} """ ) conn.commit() conn.close() # type: ignore[misc] conn = self.get_conn() ...
<vulnerable_code> def test_bulk_load(self): self.db_hook.bulk_load("table", "/tmp/file") self.cur.execute.assert_called_once_with( """ LOAD DATA LOCAL INFILE '/tmp/file' INTO TABLE table """ ) def test_bulk_dump(self): self.db_hook...
<vulnerable_code> assert fakeTeamB is not None assert len(fakeTeamB.permissions) == 0 assert len(fakeTeamA.permissions) == 3 assert fakeTeamA.permissions[0].resource.name == permissions.RESOURCE_POOL assert fakeTeamA.permissions[0].action.name == permissions.ACTION_CAN_EDIT ...
<vulnerable_code># under the License. from __future__ import annotations import warnings from functools import cached_property from pathlib import Path from typing import TYPE_CHECKING, Container GroupCommand, ) from airflow.configuration import conf from airflow.exceptions import AirflowException, AirflowProvider...
<vulnerable_code> @pytest.fixture def auth_manager_with_appbuilder(): flask_app = Flask(__name__) appbuilder = init_appbuilder(flask_app) return FabAuthManager(appbuilder) def test_security_manager_return_fab_security_manager_override(self, auth_manager_with_appbuilder): assert isinstance(auth...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code># under the License. from __future__ import annotations from typing import Any from googleapiclient.discovery import Resource, build from googleapiclient.http import MediaFileUpload from airflow.providers.google.common.hooks.base_google import GoogleBaseHook def __init__(self, api_version: st...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code>from __future__ import annotations import csv from tempfile import NamedTemporaryFile from typing import TYPE_CHECKING, Any, Sequence from airflow.models import BaseOperator from airflow.providers.google.cloud.hooks.gcs import GCSHook from airflow.providers.google.marketing_platform.hooks.analytics i...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code><commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository is used to install mysql client, it induces libxml compilation for Python 3.8 and 3.9 and this library requires devel version of zlib that is missing in the image. This P...
<vulnerable_code> # Otherwise, when the name of a view or menu is changed, the framework # will add the new Views and Menus names to the backend, but will not # delete the old ones. if conf.getboolean("webserver", "UPDATE_FAB_PERMS"): self.security_manager.sync_roles()<commit_...
<vulnerable_code> base_template="airflow/main.html", static_folder="static/appbuilder", static_url_path="/appbuilder", update_perms=conf.getboolean("webserver", "UPDATE_FAB_PERMS"), auth_rate_limited=conf.getboolean("webserver", "AUTH_RATE_LIMITED", fallback=True), auth_ra...
<vulnerable_code>def app(): from tests.test_utils.config import conf_vars with conf_vars({("webserver", "auth_rate_limited"): "False"}): from airflow.www import app yield app.create_app(testing=True)<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_descript...
<vulnerable_code> ] ) def factory(): with conf_vars({("webserver", "auth_rate_limited"): "False"}): return create_app(testing=True) app = factory()<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_description>Seems that when mysql repository i...
<vulnerable_code> @conf_vars( { ("logging", "logging_config_class"): "airflow_local_settings.LOGGING_CONFIG", ("webserver", "auth_rate_limited"): "False", } ) def factory():<commit_title>[PATCH 001/111] Add zlib1g-dev package to Airflow images (#36493)<commit_descripti...
<vulnerable_code> ] ) def factory(): with conf_vars( {("webserver", "auth_rate_limited"): "True", ("webserver", "auth_rate_limit"): "1 per 20 second"} ): return create_app(testing=True) app = factory()<commit_title>[PATCH 001/111] Add zlib1g-dev package to Air...
<vulnerable_code> "gitSync": { "enabled": True, "containerName": "git-sync-test", "wait": 66, "maxFailures": 70, "subPath": "path1/path2", "rev": "HEAD", ...
<vulnerable_code> ) def test_validate_the_git_sync_container_spec(self): docs = render_chart( values={ "images": { "enabled": True, "containerName": "git-sync-test", "wait": 66, ...