mirror of https://github.com/grafana/grafana.git
* fix: increase login_attempt.ip_address column length for IPv6 support - Expand ip_address column from VARCHAR(30) to VARCHAR(50) to accommodate IPv6 addresses - Add database migration with support for PostgreSQL, MySQL, and SQLite - Add comprehensive integration tests for various IPv6 address formats - Resolves 500 errors when login fails over IPv6, now returns proper 401 errors Fixes #106362 * test: add missing test skip to TestIntegrationIPv6AddressSupport Skip integration test when running with -short flag to separate unit and integration tests * Update pkg/services/sqlstore/migrations/login_attempt_mig.go Co-authored-by: Victor Cinaglia <victor@grafana.com> * fix missing bracket * fix: resolve PostgreSQL timestamp overflow in IPv6 test - Use controlled time mock instead of time.Now() to avoid timestamp conversion issues - Follow existing test patterns with xormStore and mock time functions - Add proper Since parameter to GetIPLoginAttemptCount query - Fixes PostgreSQL error: 'pq: value "-62135596800" is out of range for type integer' * fix: resolve PostgreSQL UTF-8 encoding error in IPv6 test Replace string(rune(i)) with fmt.Sprintf to avoid null bytes (0x00) when i=0, which caused 'invalid byte sequence for encoding UTF8' error --------- Co-authored-by: Victor Cinaglia <victor@grafana.com> |
||
---|---|---|
.. | ||
accesscontrol | ||
anonservice | ||
externalsession | ||
signingkeys | ||
ssosettings | ||
ualert | ||
usermig | ||
alert_mig.go | ||
annotation_mig.go | ||
apikey_mig.go | ||
cache_data_mig.go | ||
cloud_migrations.go | ||
common.go | ||
correlations_mig.go | ||
dashboard_acl.go | ||
dashboard_mig.go | ||
dashboard_public_mig.go | ||
dashboard_snapshot_mig.go | ||
dashboard_version_mig.go | ||
datasource_mig.go | ||
db_file_storage.go | ||
entity_events_mig.go | ||
external_alertmanagers.go | ||
folder_mig.go | ||
heartbeat_mig.go | ||
kv_store_mig.go | ||
libraryelements.go | ||
login_attempt_mig.go | ||
migrations.go | ||
migrations_test.go | ||
org_mig.go | ||
playlist_mig.go | ||
plugin_setting.go | ||
preferences_mig.go | ||
query_history_mig.go | ||
query_history_star_mig.go | ||
quota_mig.go | ||
secrets_mig.go | ||
serverlock_migrations.go | ||
session_mig.go | ||
short_url_mig.go | ||
star_mig.go | ||
stats_mig.go | ||
tag_mig.go | ||
team_mig.go | ||
temp_user.go | ||
user_auth_mig.go | ||
user_auth_token_mig.go | ||
user_mig.go |