Skip to content

Commit

Permalink
Enforce HTTPS (#21182)
Browse files Browse the repository at this point in the history
* Enforce HTTPS
  • Loading branch information
grishick authored and jbfbell committed Jan 13, 2023
1 parent 18c1776 commit a8a10bb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ COPY destination_databend ./destination_databend
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.0
LABEL io.airbyte.version=0.1.1
LABEL io.airbyte.name=airbyte/destination-databend
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@


class DatabendClient:
def __init__(self, protocol: str, host: str, port: int, database: str, table: str, username: str, password: str = None):
self.protocol = protocol
def __init__(self, host: str, port: int, database: str, table: str, username: str, password: str = None):
self.host = host
self.port = port
self.database = database
Expand All @@ -16,6 +15,6 @@ def __init__(self, protocol: str, host: str, port: int, database: str, table: st
self.password = password

def open(self):
handle = connector.connect(f"{self.protocol}://{self.username}:{self.password}@{self.host}:{self.port}").cursor()
handle = connector.connect(f"https://{self.username}:{self.password}@{self.host}:{self.port}").cursor()

return handle
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@
"type" : "string",
"order" : 0
},
"protocol" : {
"title" : "Protocol",
"description" : "Protocol of the host.",
"type" : "string",
"examples" : [
"https"
],
"default" : "https",
"order" : 1
},
"port" : {
"title" : "Port",
"description" : "Port of the database.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ def config() -> Dict[str, str]:
"username": "root",
"password": "root",
"host": "localhost",
"protocol": "http",
"port": 8081,
"table": "default",
}
Expand Down
7 changes: 6 additions & 1 deletion docs/integrations/destinations/databend.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ You should now have all the requirements needed to configure Databend as a desti


## Changelog
######TODO: more info

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------|
| 0.1.1 | 2022-01-09 | [21182](https://github.com/airbytehq/airbyte/pull/21182) | Remove protocol option and enforce HTTPS |
| 0.1.0 | 2022-01-09 | [20909](https://github.com/airbytehq/airbyte/pull/20909) | Destination Databend |

0 comments on commit a8a10bb

Please sign in to comment.