Skip to content

Commit

Permalink
Merge pull request #113 from szilveszter/improve-auth-policy-path
Browse files Browse the repository at this point in the history
Update path regex to allow underscores and colons
  • Loading branch information
szilveszter authored Jan 25, 2021
2 parents c2946f4 + 1baf165 commit 65a9e47
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bandit.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
skips: ["B110", "B101", "B322", "B404", "B602", "B607"]
skips: ["B110", "B101", "B404", "B602", "B607"]
2 changes: 1 addition & 1 deletion fleece/authpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(
# Policy version should always be '2012-10-17'
self.version = "2012-10-17"
# Used to validate resource paths for policy
self.path_regex = r"^[/.a-zA-Z0-9-\*]+$"
self.path_regex = r'^[/.a-zA-Z0-9-_\*\:]+$'
# Lists of allowed/denied methods, objects with resource ARN and
# nullable conditions statement
self.allowMethods = []
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fleece"
version = "1.0.0-alpha.0"
version = "1.0.0"
description = "Wrap the lamb...da"
license = "Apache-2.0"
readme = "README.md"
Expand Down Expand Up @@ -88,6 +88,7 @@ bandit = "bandit -c .bandit.yml -r fleece/"
black = "black fleece"
black_ci = "black -check fleece"
flake8 = "flake8 fleece/ tests/"
convert_readme = "pandoc --from=gfm --to=rst README.md --output=README.rst"
generate_requirements = "poetry export -f requirements.txt -o requirements.txt"
pre_safety = "task generate_requirements"
safety = "safety check -r requirements.txt"
Expand Down

0 comments on commit 65a9e47

Please sign in to comment.