-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from samansmink/hotfix-endpoints-set-incorrectly
Hotfix endpoints set incorrectly with credential chain
- Loading branch information
Showing
5 changed files
with
119 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ concurrency: | |
jobs: | ||
duckdb-stable-build: | ||
name: Build extension binaries | ||
uses: duckdb/duckdb/.github/workflows/[email protected] | ||
uses: duckdb/extension-ci-tools/.github/workflows/[email protected] | ||
with: | ||
extension_name: aws | ||
duckdb_version: 'v0.10.0' | ||
|
@@ -23,7 +23,7 @@ jobs: | |
duckdb-stable-deploy: | ||
name: Deploy extension binaries | ||
needs: duckdb-stable-build | ||
uses: duckdb/duckdb/.github/workflows/[email protected] | ||
uses: duckdb/extension-ci-tools/.github/workflows/[email protected] | ||
secrets: inherit | ||
with: | ||
extension_name: aws | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# name: test/sql/aws_secret_gcs.test | ||
# description: test aws extension with gcs secret | ||
# group: [aws] | ||
|
||
require aws | ||
|
||
require httpfs | ||
|
||
# Note this test is not very intelligent since we dont assume any profiles to be available | ||
|
||
statement ok | ||
SET allow_persistent_secrets=false | ||
|
||
statement ok | ||
CREATE SECRET s1 ( | ||
TYPE GCS, | ||
PROVIDER credential_chain | ||
); | ||
|
||
query I | ||
SELECT which_secret('gcs://haha/hoehoe.parkoe', 'gcs') | ||
---- | ||
s1 | ||
|
||
statement error | ||
from "gcs://a/b.csv" | ||
---- | ||
https://storage.googleapis.com/a/b.csv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# name: test/sql/aws_secret_r2.test | ||
# description: test aws extension with r2 secret | ||
# group: [aws] | ||
|
||
require aws | ||
|
||
require httpfs | ||
|
||
# Note this test is not very intelligent since we dont assume any profiles to be available | ||
|
||
statement ok | ||
SET allow_persistent_secrets=false | ||
|
||
statement ok | ||
CREATE SECRET s1 ( | ||
TYPE R2, | ||
PROVIDER credential_chain, | ||
ACCOUNT_ID "<account>" | ||
); | ||
|
||
query I | ||
SELECT which_secret('r2://haha/hoehoe.parkoe', 'r2') | ||
---- | ||
s1 | ||
|
||
statement error | ||
from "r2://blabla/file.csv" | ||
---- | ||
https://<account>.r2.cloudflarestorage.com/blabla/file.csv' |