Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).


## [2.2.1] - 2026-10-16

### Fixed

- Reject null, empty, or whitespace-only attribute values in `create.ps1` and `update.ps1` with an attribute-specific audit error, preventing empty values from being stored in the blocklist.

## [2.2.0] - 2026-08-03

### Added
Expand Down
2 changes: 1 addition & 1 deletion UniquenessCheck/uniquenessCheckAdChecksSql.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#########################################################################
# HelloID-Conn-Prov-Target-Blocklist-Check-On-External-Systems-AD-SQL
# HelloID-Conn-Prov-Target-Blocklist-Check-On-External-Systems-SQL
#########################################################################

# Initialize default properties
Expand Down
5 changes: 5 additions & 0 deletions create.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ try {
$querySelectResult = [System.Collections.ArrayList]::new()
Invoke-SQLQuery @querySelectSplatParams -Data ([ref]$querySelectResult) -verbose:$false

if ([string]::IsNullOrWhiteSpace($actionContext.Data.$attributeName)) {
$actionMessage = "validating attribute [$attributeName]"
throw "Attribute [$attributeName] must not be null, empty or whitespace."
}

$selectRowCount = ($querySelectResult | Measure-Object).count
Write-Information "Queried data FROM [$table] WHERE [attributeName] = '$attributeName' AND [attributeValue] = '$attributeValue'. Result count: $selectRowCount"

Expand Down
5 changes: 5 additions & 0 deletions update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ try {
$querySelectResult = [System.Collections.ArrayList]::new()
Invoke-SQLQuery @querySelectSplatParams -Data ([ref]$querySelectResult) -verbose:$false

if ([string]::IsNullOrWhiteSpace($actionContext.Data.$attributeName)) {
$actionMessage = "validating attribute [$attributeName]"
throw "Attribute [$attributeName] must not be null, empty or whitespace."
}

$selectRowCount = ($querySelectResult | measure-object).count
Write-Verbose "Queried data FROM [$table] WHERE [attributeName] = '$attributeName' AND [attributeValue] = '$attributeValue'. Result count: $selectRowCount"

Expand Down
Loading