[Task] Add account expiry monitoring metrics for SQL Server#4037
Open
turanalmammadov wants to merge 1 commit intoapache:masterfrom
Open
[Task] Add account expiry monitoring metrics for SQL Server#4037turanalmammadov wants to merge 1 commit intoapache:masterfrom
turanalmammadov wants to merge 1 commit intoapache:masterfrom
Conversation
Add password expiry monitoring for SQL Server login accounts to enable proactive security management. Changes: - Added new metric 'account_expiry' to app-sqlserver.yml (priority 14) - Queries sys.sql_logins for password expiration data - Returns user name, type, disabled status, expiry date - Calculates days_until_expiry using DATEDIFF - Filters active (non-disabled) accounts only SQL Query: SELECT name, type description, is_disabled, password_expiry_date, DATEDIFF(day, GETDATE(), password_expiry_date) as days_until_expiry FROM sys.sql_logins WHERE is_disabled = 0 User Types Supported: - SQL Login - Windows Login - Windows Group - Certificate - Asymmetric Key Benefits: - Alert before password expiry - Security compliance monitoring - Prevents production access issues - Supports SQL Server 2012+ Related: issue apache#3737 (task list: app-sqlserver.yml) Signed-off-by: Turan Almammadov <16321061+turanalmammadov@users.noreply.github.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #3737
What's Changed?
Added password expiry monitoring for SQL Server login accounts.
New Metric: account_expiry
SQL Query
Task List Progress (from #3737)
Signed-off-by: Turan Almammadov 16321061+turanalmammadov@users.noreply.github.com
Made with Cursor