Skip to content

Commit

Permalink
🚑️ Add service_principal_name support for ACLs (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
renardeinside authored May 11, 2023
1 parent 1771390 commit fae4812
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

[Please read through the Keep a Changelog (~5min)](https://keepachangelog.com/en/1.0.0/).

## [0.8.14] - 2023-05-11

### Added

- Add `service_principal_name` support for ACLs

## [0.8.13] - 2023-05-10

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion dbx/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.8.13"
__version__ = "0.8.14"
3 changes: 2 additions & 1 deletion dbx/models/workflow/common/access_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ class PermissionLevel(str, Enum):
class AccessControlRequest(FlexibleModel):
user_name: Optional[str]
group_name: Optional[str]
service_principal_name: Optional[str]
permission_level: PermissionLevel

_one_of_provided = root_validator(pre=True, allow_reuse=True)(
lambda _, values: at_least_one_of(["user_name", "group_name"], values)
lambda _, values: at_least_one_of(["user_name", "group_name", "service_principal_name"], values)
)


Expand Down

0 comments on commit fae4812

Please sign in to comment.