Servicelayer

Latest version: v1.22.2

Safety actively analyzes 626071 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.22.2

⚠️ This release fixes a potential security vulnerability. We strongly encourage you to use this release and disregard previous ones. ⚠️

This release includes a fix for the archive functionality in servicelayer. Previously, the `generate_url` methods of the [Google Cloud Storage archive adapter](https://github.com/alephdata/servicelayer/blob/9f6cb9e6ffb982c25d9a184d68a9cac318bc7374/servicelayer/archive/gs.py#L158) and the [AWS S3 archive adapter](https://github.com/alephdata/servicelayer/blob/9f6cb9e6ffb982c25d9a184d68a9cac318bc7374/servicelayer/archive/s3.py#L141) were generating URLs instructing AWS S3 and Google Cloud Storage to send a `Content-Disposition: inline` header in the response.

When sending this header, most browsers will automatically open the file if the file’s MIME type is supported by the browser. This may not be desired in some cases, for example when downloading files from untrustworthy sources.

Starting with this version of servicelayer, the generated URLs will instead instruct AWS S3 and Google Cloud Storage to send a `Content-Disposition: attachment` header. Browsers won’t open files without user interaction if this header is set.

1.22.1

What's Changed
* Change default port for Prometheus metrics endpoint to 9100 by tillprochaska in https://github.com/alephdata/servicelayer/pull/129
* Misc Promethus changes by tillprochaska in https://github.com/alephdata/servicelayer/pull/130


**Full Changelog**: https://github.com/alephdata/servicelayer/compare/v1.22.0...v1.22.1

1.22.0

What's Changed
* Add basic Prometheus instrumentation for workers by tillprochaska in https://github.com/alephdata/servicelayer/pull/111
* Log worker retry count and retry count exhaustion by stchris in https://github.com/alephdata/servicelayer/pull/113

Dependency upgrades
* Bump pytest-env from 0.8.1 to 1.0.1 by dependabot in https://github.com/alephdata/servicelayer/pull/110
* Bump wheel from 0.40.0 to 0.41.2 by dependabot in https://github.com/alephdata/servicelayer/pull/108
* Bump ruff from 0.0.270 to 0.0.292 by dependabot in https://github.com/alephdata/servicelayer/pull/119
* Bump fakeredis from 2.13.0 to 2.19.0 by dependabot in https://github.com/alephdata/servicelayer/pull/118
* Bump black from 23.3.0 to 23.9.1 by dependabot in https://github.com/alephdata/servicelayer/pull/117
* Bump structlog from 23.1.0 to 23.2.0 by dependabot in https://github.com/alephdata/servicelayer/pull/116
* Bump pytest from 7.3.1 to 7.4.2 by dependabot in https://github.com/alephdata/servicelayer/pull/115
* Bump normality from 2.4.0 to 2.5.0 by dependabot in https://github.com/alephdata/servicelayer/pull/114
* Bump pytest-mock from 3.10.0 to 3.11.1 by dependabot in https://github.com/alephdata/servicelayer/pull/98


New Contributors
* tillprochaska made their first contribution in https://github.com/alephdata/servicelayer/pull/111

**Full Changelog**: https://github.com/alephdata/servicelayer/compare/v1.21.2...v1.22.0

1.21.0

What's Changed
* Add Sentry support to servicelayer workers by stchris in https://github.com/alephdata/servicelayer/pull/88

This release adds support for sending error tracebacks to sentry.io (or a self-hosted instance). This is controlled by two environment variables: SENTRY_DSN and SENTRY_ENVIRONMENT. Note that you also have to take care of installing the [sentry_sdk](https://pypi.org/project/sentry-sdk/) package.
* Add and enforce linter (ruff) and code formatter (black) by stchris in https://github.com/alephdata/servicelayer/pull/89

This updates the development environment and CI configuration to be closer to what we have in Aleph.


**Full Changelog**: https://github.com/alephdata/servicelayer/compare/v1.20.7...v1.21.0

1.20.7

What's Changed
* Bump fakeredis to 2.11.2
* Add release steps to README

New Contributors
* stchris made their first contribution in https://github.com/alephdata/servicelayer/pull/87

**Full Changelog**: https://github.com/alephdata/servicelayer/compare/v1.20.6...v1.20.7

1.20.6

What's Changed
* Bump pika from 1.3.0 to 1.3.1 by dependabot in https://github.com/alephdata/servicelayer/pull/76
* Bump fakeredis from 1.9.1 to 1.10.0 by dependabot in https://github.com/alephdata/servicelayer/pull/77
* Bump fakeredis from 1.10.0 to 1.10.1 by dependabot in https://github.com/alephdata/servicelayer/pull/79
* refactor to suport SQLAlchemy 2.0 migration by catileptic in https://github.com/alephdata/servicelayer/pull/82

New Contributors
* catileptic made their first contribution in https://github.com/alephdata/servicelayer/pull/82

**Full Changelog**: https://github.com/alephdata/servicelayer/compare/v1.20.5...v1.20.6

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.