Skip to content

Commit

Permalink
(Bugfix) - Integrations crashing with regex error after 0.5.0 (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
yairsimantov20 authored Feb 21, 2024
1 parent 158ff88 commit f8c873b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

## 0.5.1 (2024-02-21)


### Bug Fixes

- Fixed an issue causing the integration to crash when passing a sensitive configuration with invalid regex characters due to a missing escaping (PORT-6836)


## 0.5.1 (2024-02-20)


Expand Down
2 changes: 1 addition & 1 deletion port_ocean/log/sensetive.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SensitiveLogFilter:

def hide_sensitive_strings(self, *tokens: str) -> None:
self.compiled_patterns.extend(
[re.compile(token) for token in tokens if token.strip()]
[re.compile(re.escape(token.strip())) for token in tokens if token.strip()]
)

def create_filter(self, full_hide: bool = False) -> Callable[["Record"], bool]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "port-ocean"
version = "0.5.1"
version = "0.5.2"
description = "Port Ocean is a CLI tool for managing your Port projects."
readme = "README.md"
homepage = "https://app.getport.io"
Expand Down

0 comments on commit f8c873b

Please sign in to comment.