You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
list_log_streams() raises ValidationError because LogStreamSettingsAws.eventSourceName regex is missing the quantifier #549
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
If you are interested in working on this issue or have submitted a pull request, please leave a comment.
Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it.
Any tenant with an AWS EventBridge Log Stream whose eventSourceName is two or more characters reproduces it. (Effectively: every tenant — single-character event source names are uncommon to nonexistent in practice.)
Debug Output / Traceback
pydantic_core.pydantic_core.ValidationError: 1 validation error for LogStreamSettingsAws eventSourceName
Value error, must validate the regular expression /^[a-zA-Z0-9.-]$/ [type=value_error, input_value='TestField', input_type=str]. For further information visit https://errors.pydantic.dev/2.12/v/value_error
Expected Behavior
list_log_streams() returns the tuple (items, response, None). Multi-character eventSourceName values should be accepted — they are explicitly allowed by Okta's UI and by the Management API (which mints them at log-stream creation time).
Actual Behavior
The SDK refuses to deserialize the response. The HTTP call succeeded — Okta returned a valid payload — but the pydantic validator chokes. Callers never see the data; the exception propagates out of list_log_streams() instead of being returned in the (items, response, error) tuple.
Steps to reproduce
Configure any AWS EventBridge Log Stream in Okta (Reports → Log Streaming → Add → AWS EventBridge) with an Event Source Name longer than one character. The Okta UI itself does not enforce a
single-character limit.
Activity