Skip to content

Conversation

@flown4qqqq
Copy link
Collaborator

@flown4qqqq flown4qqqq commented Apr 9, 2025

Changelog entry

In schemeshard, we have audit_log_component, which outputs audit logs. There was not details of operation MODIFY(ALTER) USER. So, we need to know what this operation do. There are some ways:

  1. Change the password (or hash);
  2. Block user;
  3. Unblock user.

This PR adds details into audit_log.

Changelog category

  • Improvement

@flown4qqqq flown4qqqq requested a review from a team as a code owner April 9, 2025 12:06
@github-actions
Copy link

github-actions bot commented Apr 9, 2025

🟢 2025-04-09 12:17:57 UTC The validation of the Pull Request description is successful.

@flown4qqqq flown4qqqq requested a review from ijon April 9, 2025 12:08
@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:09:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 835f439 has started.
2025-04-09 12:09:49 UTC Artifacts will be uploaded here
2025-04-09 12:12:44 UTC ya make is running...
🔴 2025-04-09 12:23:53 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:10:22 UTC Pre-commit check linux-x86_64-release-asan for 835f439 has started.
2025-04-09 12:10:38 UTC Artifacts will be uploaded here
2025-04-09 12:13:26 UTC ya make is running...
🔴 2025-04-09 12:22:27 UTC Build failed, see the logs. Also see fail summary

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:26:58 UTC Pre-commit check linux-x86_64-relwithdebinfo for f457517 has started.
2025-04-09 12:27:14 UTC Artifacts will be uploaded here
2025-04-09 12:29:57 UTC ya make is running...
2025-04-09 12:39:31 UTC Check cancelled

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:29:01 UTC Pre-commit check linux-x86_64-release-asan for f457517 has started.
2025-04-09 12:29:16 UTC Artifacts will be uploaded here
2025-04-09 12:32:02 UTC ya make is running...

@flown4qqqq flown4qqqq force-pushed the audit-log-modify-user branch from 819ed60 to d7efeee Compare April 9, 2025 12:38
@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:46:34 UTC Pre-commit check linux-x86_64-relwithdebinfo for 549e633 has started.
2025-04-09 12:46:50 UTC Artifacts will be uploaded here
2025-04-09 12:49:36 UTC ya make is running...
🟡 2025-04-09 13:49:51 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
19865 18502 0 3 1245 115

2025-04-09 13:51:43 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-09 14:03:09 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
165 (only retried tests) 61 0 0 0 104

🟢 2025-04-09 14:03:16 UTC Build successful.
🟢 2025-04-09 14:03:39 UTC ydbd size 2.2 GiB changed* by +11.9 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 651a677 merge: 549e633 diff diff %
ydbd size 2 357 506 656 Bytes 2 357 518 800 Bytes +11.9 KiB +0.001%
ydbd stripped size 492 796 384 Bytes 492 797 280 Bytes +896 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 12:46:44 UTC Pre-commit check linux-x86_64-release-asan for 549e633 has started.
2025-04-09 12:46:59 UTC Artifacts will be uploaded here
2025-04-09 12:49:46 UTC ya make is running...
🟡 2025-04-09 14:13:01 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12277 11913 0 283 40 41

2025-04-09 14:14:12 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-09 14:30:42 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
431 (only retried tests) 326 0 50 20 35

2025-04-09 14:30:52 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-09 14:46:59 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
145 (only retried tests) 63 0 38 9 35

🟢 2025-04-09 14:47:06 UTC Build successful.
🟢 2025-04-09 14:47:43 UTC ydbd size 3.9 GiB changed* by +20.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 651a677 merge: 549e633 diff diff %
ydbd size 4 136 337 160 Bytes 4 136 357 632 Bytes +20.0 KiB +0.000%
ydbd stripped size 1 428 684 488 Bytes 1 428 690 760 Bytes +6.1 KiB +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 15:34:35 UTC Pre-commit check linux-x86_64-release-asan for 75dfc95 has started.
2025-04-09 15:34:50 UTC Artifacts will be uploaded here
2025-04-09 15:37:38 UTC ya make is running...
🟡 2025-04-09 16:54:05 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12279 12128 0 80 34 37

2025-04-09 16:55:08 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-09 17:11:30 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
202 (only retried tests) 115 0 37 16 34

2025-04-09 17:11:41 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-09 17:23:55 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
121 (only retried tests) 51 0 35 2 33

🟢 2025-04-09 17:24:06 UTC Build successful.
🟡 2025-04-09 17:24:39 UTC ydbd size 3.9 GiB changed* by +241.9 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: a55bf5d merge: 75dfc95 diff diff %
ydbd size 4 136 371 848 Bytes 4 136 619 552 Bytes +241.9 KiB +0.006%
ydbd stripped size 1 428 697 288 Bytes 1 428 741 832 Bytes +43.5 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 9, 2025

2025-04-09 15:35:27 UTC Pre-commit check linux-x86_64-relwithdebinfo for 75dfc95 has started.
2025-04-09 15:35:42 UTC Artifacts will be uploaded here
2025-04-09 15:38:27 UTC ya make is running...
🟡 2025-04-09 16:37:09 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
19870 18503 0 1 1250 116

2025-04-09 16:38:46 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-09 16:49:40 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
167 (only retried tests) 62 0 0 0 105

🟢 2025-04-09 16:49:47 UTC Build successful.
🟢 2025-04-09 16:50:06 UTC ydbd size 2.2 GiB changed* by +17.0 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 6853d24 merge: 75dfc95 diff diff %
ydbd size 2 357 628 864 Bytes 2 357 646 280 Bytes +17.0 KiB +0.001%
ydbd stripped size 492 806 944 Bytes 492 813 088 Bytes +6.0 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@flown4qqqq flown4qqqq self-assigned this Apr 9, 2025
ijon
ijon previously approved these changes Apr 10, 2025
AUDIT_PART("login_group", logEntry.LoginGroup)
AUDIT_PART("login_member", logEntry.LoginMember)

AUDIT_PART("login_modify_user_change", RenderList(logEntry.LoginModifyUserChange), logEntry.LoginModifyUserChange)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы сократил до login_user_change (LoginModifyUserChange -- тоже).

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 10:52:47 UTC Pre-commit check linux-x86_64-release-asan for 40494d8 has started.
2025-04-10 10:52:57 UTC Artifacts will be uploaded here
2025-04-10 10:55:49 UTC ya make is running...
🟡 2025-04-10 12:16:16 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
12282 12132 0 80 32 38

2025-04-10 12:17:20 UTC ya make is running... (failed tests rerun, try 2)
🟡 2025-04-10 12:33:05 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet Going to retry failed tests...

Details

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
207 (only retried tests) 116 0 38 19 34

2025-04-10 12:33:17 UTC ya make is running... (failed tests rerun, try 3)
🟡 2025-04-10 12:45:42 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
126 (only retried tests) 50 0 34 8 34

🟢 2025-04-10 12:45:49 UTC Build successful.
🟢 2025-04-10 12:46:20 UTC ydbd size 3.9 GiB changed* by +29.7 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: cbbff2d merge: 40494d8 diff diff %
ydbd size 4 137 021 664 Bytes 4 137 052 088 Bytes +29.7 KiB +0.001%
ydbd stripped size 1 428 885 768 Bytes 1 428 895 432 Bytes +9.4 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Apr 10, 2025

2025-04-10 11:15:46 UTC Pre-commit check linux-x86_64-relwithdebinfo for 40494d8 has started.
2025-04-10 11:16:52 UTC Artifacts will be uploaded here
2025-04-10 11:20:15 UTC ya make is running...
🟡 2025-04-10 12:20:15 UTC Some tests failed, follow the links below. Going to retry failed tests...

Details

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
19873 18508 0 3 1244 118

2025-04-10 12:22:06 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-04-10 12:35:30 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
166 (only retried tests) 61 0 0 0 105

🟢 2025-04-10 12:35:37 UTC Build successful.
🟢 2025-04-10 12:35:59 UTC ydbd size 2.2 GiB changed* by +17.3 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: cbbff2d merge: 40494d8 diff diff %
ydbd size 2 357 823 936 Bytes 2 357 841 616 Bytes +17.3 KiB +0.001%
ydbd stripped size 492 814 880 Bytes 492 817 760 Bytes +2.8 KiB +0.001%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@flown4qqqq flown4qqqq merged commit 8482e6c into ydb-platform:main Apr 10, 2025
13 checks passed
Comment on lines +131 to +133
AUDIT_PART("cloud_id", cloud_id, !cloud_id.empty())
AUDIT_PART("folder_id", folder_id, !folder_id.empty())
AUDIT_PART("resource_id", database_id, !database_id.empty())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Бессмысленный дифф. Достаточно было добавить Y_SEMICOLON_GUARD в AUDIT_PART.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Смысл был, видимо, в том, чтобы везде либо стоят ;, либо не стоят

@liruoko liruoko added the changelog/f25-3 PR участвует в списке изменений label Nov 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/f25-3 PR участвует в списке изменений improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants