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

[SDESK-7156] Allow FeedingServices to provide request kwards for association downloading #2555

Merged
merged 8 commits into from Apr 16, 2024

Conversation

MarkLark86
Copy link
Contributor

@MarkLark86 MarkLark86 commented Apr 9, 2024

This is used by AP Media API to provide x-api-key header, among others.

Also adds a new config AP_MEDIA_API_VERIFY_SSL, which defaults to True. This is to help prevent MITM style attacks, but can be turned off by env. variable if SSL verification fails for some reason.

…ciation downloading

This is used by AP Media API to provide x-api-key header, among others
@MarkLark86 MarkLark86 added this to the 2.7 milestone Apr 9, 2024
superdesk/io/feeding_services/http_base_service.py Outdated Show resolved Hide resolved
superdesk/io/commands/update_ingest.py Outdated Show resolved Hide resolved
@MarkLark86
Copy link
Contributor Author

@petrjasek I have updated the implementation to use the feeding service like you suggested. Can you have another look for me please?

superdesk/media/renditions.py Outdated Show resolved Hide resolved
@MarkLark86 MarkLark86 merged commit bbe818c into superdesk:develop Apr 16, 2024
14 checks passed
MarkLark86 added a commit to MarkLark86/superdesk-core that referenced this pull request Apr 17, 2024
…ciation downloading (superdesk#2555)

* [SDESK-7156] Allow FeedingServices to provide request kwards for association downloading
This is used by AP Media API to provide x-api-key header, among others

* fix: don't duplicate timeout arg to requests.get

* Use request sessions and feeding_services to download media

* Add comment to new config

* Move get_request_kwargs from FeedingService to HTTPFeedingServiceBase

* fix tests

* Create util function to download from service or directly

* fix circular imports
MarkLark86 added a commit to MarkLark86/superdesk-core that referenced this pull request Apr 17, 2024
…ciation downloading (superdesk#2555)

* [SDESK-7156] Allow FeedingServices to provide request kwards for association downloading
This is used by AP Media API to provide x-api-key header, among others

* fix: don't duplicate timeout arg to requests.get

* Use request sessions and feeding_services to download media

* Add comment to new config

* Move get_request_kwargs from FeedingService to HTTPFeedingServiceBase

* fix tests

* Create util function to download from service or directly

* fix circular imports
MarkLark86 added a commit to MarkLark86/superdesk-core that referenced this pull request Apr 17, 2024
…ciation downloading (superdesk#2555)

* [SDESK-7156] Allow FeedingServices to provide request kwards for association downloading
This is used by AP Media API to provide x-api-key header, among others

* fix: don't duplicate timeout arg to requests.get

* Use request sessions and feeding_services to download media

* Add comment to new config

* Move get_request_kwargs from FeedingService to HTTPFeedingServiceBase

* fix tests

* Create util function to download from service or directly

* fix circular imports

fix: add Union import back in
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

Successfully merging this pull request may close these issues.

None yet

3 participants