-
Notifications
You must be signed in to change notification settings - Fork 910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update documentation around credentials management #2669
Comments
Today I was helping @ricardopicon-mck and it was not clear how to use Google Cloud credentials. There are excellent examples of how to set up the But how does For the record, this did the trick for me: gcp_credentials:
token: gcp_credentials.json But this only worked with a flat file structure. When having a full-fledged Kedro project with gcp_credentials:
token: /Users/juan_cano/Projects/QuantumBlack Labs/tmp/test-credentials/conf/local/gcp_credentials.json I'm sure there is a better way. In general, the credentials page is not very useful: https://docs.kedro.org/en/stable/configuration/credentials.html It places a lot of emphasis in how to load them from code, but I'd consider this "advanced" or "programmatic" usage, which is not how most users experience Kedro. (see also fsspec/gcsfs#583) |
That's a good point and this page needs a clean up to bring up to the same standards as the recent data catalog updates. |
See this for reference |
We might need to document as well how credentials work during development vs in production, see this response by @noklam to a Prefect user https://linen-slack.kedro.org/t/16019525/hi-another-question-is-there-a-way-to-directly-store-the-con#146bb5db-314d-414f-947a-fd9d64f4d223 |
There are more problems with the snippet @noklam shared. This is a setup that worked for me: # catalog.yml
executive_summary:
type: text.TextDataset
filepath: s3://social-summarizer/executive-summary.txt
versioned: true
credentials: minio_fsspec
# credentials.yml
minio_fsspec:
endpoint_url: "http://127.0.0.1:9010"
key: "minioadmin"
secret: "minioadmin" This worked fine. But if I put the
The fact that our dataset code is so contrived doesn't help: kedro/kedro/extras/datasets/text/text_dataset.py Lines 84 to 94 in e8f1bfd
(the "copy paste" problems mentioned in #1778) For the record, I'm using |
I think we should do this after #3811 |
Description
Short description of the problem here.
This is the way we mentioned how to provide credentials in Kedro's doc. However
fsspec
has update the API for quite a while and if you are using newer version of fsspec, you should usekey
,secret
instead ofaws_access_key_id
instead.It could be only affecting
s3fs
(This is how I bump into error), but potentially affectgcs
and more.Context
The docs on credentials are out of date and mention wrong key names. All doc chapters mentioning credentials should be updated to use the correct keys.
The text was updated successfully, but these errors were encountered: