Skip to content

SNOW-2048475: Add a session parameter ENABLE_PUT_GET to disable/enable these commands #2285

Open
@carrasquel

Description

@carrasquel

What is the current behavior?

Currently, the python connector does not have a valid parameter to enable or disable these commands, PUT and GET, like in the JDBC connector

What is the desired behavior?

The desire behavior is to be able to add this parameter on the connector instantiation

conn = snowflake.connector.connect(
    user=USER,
    password=PASSWORD,
    account=ACCOUNT,
    warehouse=WAREHOUSE,
    database=DATABASE,
    schema=SCHEMA,
    session_parameters={
        "DISABLE_PUT_AND_GET": True,
    }
)

How would this improve snowflake-connector-python?

This commands can be used to obtain access to any running application's local file, by adding this parameter we can avoid this issue

References and other background

Disabling PUT and GET commands

Metadata

Metadata

Labels

featurestatus-triage_doneInitial triage done, will be further handled by the driver team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions