Skip to content
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

Get a valid CKAN API KEY inside harvester container #3

Closed
avdata99 opened this issue Oct 22, 2019 · 2 comments
Closed

Get a valid CKAN API KEY inside harvester container #3

avdata99 opened this issue Oct 22, 2019 · 2 comments
Assignees

Comments

@avdata99
Copy link
Owner

We need to define the CKAN_API_KEY value at harvester+airflow yaml file.

Analyze read the value of the database or try other approaches

@avdata99 avdata99 self-assigned this Oct 22, 2019
@avdata99
Copy link
Owner Author

In the process of user account creation, you get the API KEY @akariv.
I can not find another way to gei it

@avdata99
Copy link
Owner Author

Idea: ask to psql

psql postgresql://ckan:123456@db/ckan

with the query

select apikey from public.user where name='admin';

avdata99 added a commit that referenced this issue Oct 23, 2019
avdata99 added a commit that referenced this issue Oct 24, 2019
avdata99 added a commit that referenced this issue Nov 14, 2019
avdata99 added a commit that referenced this issue Nov 14, 2019
avdata99 added a commit that referenced this issue Nov 14, 2019
avdata99 added a commit that referenced this issue Dec 26, 2019
* opening ports

* add GSA catalog docker

* fix config file name

* fix config

* using OKF data.json extension

* fix config

* remove datagov new flavour

* WIP: harvester as a new image

* Andre's repo until we PR to OKF fork

* connect with network, now is able to _see_ the CKAN instance

* activate /airflow to avoid open port

* update image name

* clean

* hide failing nginx path to Airflow

* Fix  airflow UI

* docs to run harvester

* docs to run harvester

* improve docs

* improve docs

* improve docs

* fix doc

* fixes #4, if not CKAN and NGINX does not start without Harvetester (Host not found error)

* start upgrading GeoDataGov ext from a new fork

* hotfix URL error

* finished conditional airflow proxy at #4

* failing to install psql-client in order to read the CKAN ADMIN API KEY

* trying #3

* remove custom build for harvester

* works on read API key from DB. Fixes #3

* works on read API key from DB. Fixes #3

* Try to read from secrets

* Try to read from secrets

* trying as env_file

* clean compose file

* failing

* try entrypoint

* adding new secrets env file

* Log in to docker only when deploying

* Add recline graph view patch for Honduras (datopian#67)

* Fix script location

* clean

* move comments from nginx conf file

* change name for harvester secrets

* add harvester secrets to dat config file

* Add USMetadata ext

* move docs

* not need to configure SQLALCHEMY, is a copy of ckan config

* add harvester secrets to operator

* delete help

* rename file

* copy from base

* fix readme and ignore local yaml tests

* undo previous changes

* using setdefault

* simplify dict secret

* opening ports

* add GSA catalog docker

* fix config file name

* fix config

* using OKF data.json extension

* fix config

* remove datagov new flavour

* WIP: harvester as a new image

* Andre's repo until we PR to OKF fork

* connect with network, now is able to _see_ the CKAN instance

* activate /airflow to avoid open port

* update image name

* clean

* hide failing nginx path to Airflow

* Fix  airflow UI

* docs to run harvester

* docs to run harvester

* improve docs

* improve docs

* improve docs

* fix doc

* fixes #4, if not CKAN and NGINX does not start without Harvetester (Host not found error)

* start upgrading GeoDataGov ext from a new fork

* hotfix URL error

* finished conditional airflow proxy at #4

* failing to install psql-client in order to read the CKAN ADMIN API KEY

* trying #3

* remove custom build for harvester

* works on read API key from DB. Fixes #3

* works on read API key from DB. Fixes #3

* Try to read from secrets

* Try to read from secrets

* trying as env_file

* clean compose file

* failing

* try entrypoint

* adding new secrets env file

* clean

* move comments from nginx conf file

* change name for harvester secrets

* add harvester secrets to dat config file

* Add USMetadata ext

* move docs

* not need to configure SQLALCHEMY, is a copy of ckan config

* add harvester secrets to operator

* delete help

* rename file

* fix readme and ignore local yaml tests

* undo previous changes

* using setdefault

* simplify dict secret

* moved to daopian (still need to move to GSA)

* remove exposed port

* fix template

* fix URL and try new settings

* add help
avdata99 added a commit that referenced this issue Dec 30, 2019
avdata99 added a commit that referenced this issue Dec 30, 2019
avdata99 added a commit that referenced this issue Dec 30, 2019
avdata99 added a commit that referenced this issue Dec 30, 2019
avdata99 added a commit that referenced this issue Dec 30, 2019
avdata99 added a commit that referenced this issue Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant