Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit audit table printers #192 #197

Merged
merged 2 commits into from
Jun 29, 2023
Merged

Conversation

vknabel
Copy link
Contributor

@vknabel vknabel commented Jun 29, 2023

closes #192

below is the new output of the audit ls command.

❯ m audit ls
TIME                  REQUEST ID                             COMPONENT   DETAIL                         PATH                                           CODE   USER                       
2023-06-29 08:41:35   01423762-249e-45cc-88f9-326de0929f9d   server      unary                          /api.v1.ClusterService/Create                         [email protected]     
2023-06-29 08:41:35   01423762-249e-45cc-88f9-326de0929f9d   server      unary                          /api.v1.ClusterService/Create                         [email protected]     
2023-06-29 08:41:15                                          auth                                                                                             vknabel@github@test          
2023-06-29 08:41:09   48abf927-afac-40e1-a1d5-86db62d1f453   noop        [email protected]   Admitted                                              [email protected]     
2023-06-29 08:41:08   48abf927-afac-40e1-a1d5-86db62d1f453   server      unary                          /admin.v1.TenantService/Admit                         [email protected]     
2023-06-29 08:41:08   48abf927-afac-40e1-a1d5-86db62d1f453   server      unary                          /admin.v1.TenantService/Admit                         [email protected]     
2023-06-29 08:40:33   c0044e5d-9f99-49a7-a2f1-c303a11edc68   server      unary                          /admin.v1.PaymentService/ListCoupons                  [email protected]     
2023-06-29 08:40:33   c0044e5d-9f99-49a7-a2f1-c303a11edc68   server      unary                          /admin.v1.PaymentService/ListCoupons                  [email protected]     
2023-06-29 08:40:01                                          noop        [email protected]   Welcome                                               [email protected]     
2023-06-29 08:39:07                                          auth                                                                                             vknabel@github@test          
2023-06-29 08:23:19                                          opa         unary                          /api.v1.PaymentService/CheckIfCustomerExists                                       
2023-06-29 08:23:15                                          opa         unary                          /api.v1.PaymentService/CheckIfCustomerExists                                       
2023-06-29 08:23:15                                          opa         unary                          /api.v1.PaymentService/CheckAdmitted                                               
2023-06-29 08:21:51   cea647fc-3d16-427e-9d58-137d9f10ca11   metal-api   PUT                            /v1/size                                       201    [email protected]   
2023-06-29 08:21:51   d2635121-67a0-4f58-ba2b-ee7c27c234c4   metal-api   PUT                            /v1/network                                    201    [email protected]   
2023-06-29 08:21:51   87ff3117-1839-4582-a70a-89e010d28737   metal-api   PUT                            /v1/network                                    201    [email protected]   
2023-06-29 08:21:51   649b8f2d-3e13-43db-8286-494f36845b6b   metal-api   PUT                            /v1/network                                    201    [email protected]   
2023-06-29 08:21:51   95f103a4-bfe0-4ff7-8ea6-4e6455f57bc2   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   
2023-06-29 08:21:51   c8b2451c-209f-4c16-b9d7-70a8257e3ae3   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   
2023-06-29 08:21:51   7342ffc0-3422-4e6e-9520-59fc806caafc   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   
2023-06-29 08:21:51   cea647fc-3d16-427e-9d58-137d9f10ca11   metal-api   PUT                            /v1/size                                              [email protected]   
2023-06-29 08:21:51   d2635121-67a0-4f58-ba2b-ee7c27c234c4   metal-api   PUT                            /v1/network                                           [email protected]   
2023-06-29 08:21:51   87ff3117-1839-4582-a70a-89e010d28737   metal-api   PUT                            /v1/network                                           [email protected]   
2023-06-29 08:21:51   649b8f2d-3e13-43db-8286-494f36845b6b   metal-api   PUT                            /v1/network                                           [email protected]   
2023-06-29 08:21:51   95f103a4-bfe0-4ff7-8ea6-4e6455f57bc2   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   
2023-06-29 08:21:51   c8b2451c-209f-4c16-b9d7-70a8257e3ae3   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   
2023-06-29 08:21:51   7342ffc0-3422-4e6e-9520-59fc806caafc   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   
2023-06-29 08:21:50   7a7c4961-10a4-4beb-afc6-b67096349e94   metal-api   PUT                            /v1/image                                      201    [email protected]   
2023-06-29 08:21:50   7a0cc6c6-885f-42c2-94a4-c153b4213988   metal-api   PUT                            /v1/image                                      201    [email protected]   
2023-06-29 08:21:50   dae18b39-c546-4bc2-808f-94a371cedcf5   metal-api   PUT                            /v1/partition                                  201    [email protected]   
2023-06-29 08:21:50   7a7c4961-10a4-4beb-afc6-b67096349e94   metal-api   PUT                            /v1/image                                             [email protected]   
2023-06-29 08:21:50   7a0cc6c6-885f-42c2-94a4-c153b4213988   metal-api   PUT                            /v1/image                                             [email protected]   
2023-06-29 08:21:50   dae18b39-c546-4bc2-808f-94a371cedcf5   metal-api   PUT                            /v1/partition                                         [email protected]   

And with -o wide

❯ m audit ls -o wide
TIME                  REQUEST ID                             COMPONENT   DETAIL                         PATH                                           CODE   USER                         TENANT        BODY                                     
2023-06-29 08:41:35   01423762-249e-45cc-88f9-326de0929f9d   server      unary                          /api.v1.ClusterService/Create                         [email protected]                   {"Msg":{"cluster":{"created_at":{"nan...   
2023-06-29 08:41:35   01423762-249e-45cc-88f9-326de0929f9d   server      unary                          /api.v1.ClusterService/Create                         [email protected]                   {"kubernetes":{"version":"1.23.4"},"m...   
2023-06-29 08:41:15                                          auth                                                                                             vknabel@github@test                        {"avatar_url":"https://avatars.github...   
2023-06-29 08:41:09   48abf927-afac-40e1-a1d5-86db62d1f453   noop        [email protected]   Admitted                                              [email protected]                   {"coupon":50,"name":"NAME"}                
2023-06-29 08:41:08   48abf927-afac-40e1-a1d5-86db62d1f453   server      unary                          /admin.v1.TenantService/Admit                         [email protected]                   {"Msg":{"tenant":{"admitted":true,"cr...   
2023-06-29 08:41:08   48abf927-afac-40e1-a1d5-86db62d1f453   server      unary                          /admin.v1.TenantService/Admit                         [email protected]                   {"coupon_id":"SnOLy9Mb","tenant_id":"...   
2023-06-29 08:40:33   c0044e5d-9f99-49a7-a2f1-c303a11edc68   server      unary                          /admin.v1.PaymentService/ListCoupons                  [email protected]                   {"Msg":{"coupons":[{"amount_off":5000...   
2023-06-29 08:40:33   c0044e5d-9f99-49a7-a2f1-c303a11edc68   server      unary                          /admin.v1.PaymentService/ListCoupons                  [email protected]                   {}                                         
2023-06-29 08:40:01                                          noop        [email protected]   Welcome                                               [email protected]                   {"name":"NAME"}                            
2023-06-29 08:39:07                                          auth                                                                                             vknabel@github@test                        {"avatar_url":"https://avatars.github...   
2023-06-29 08:23:19                                          opa         unary                          /api.v1.PaymentService/CheckIfCustomerExists                                                     {"customer":{"address":{"city":"sadju...   
2023-06-29 08:23:15                                          opa         unary                          /api.v1.PaymentService/CheckIfCustomerExists                                                     {"login":"vknabel@github"}                 
2023-06-29 08:23:15                                          opa         unary                          /api.v1.PaymentService/CheckAdmitted                                                             {"login":"vknabel@github"}                 
2023-06-29 08:21:51   cea647fc-3d16-427e-9d58-137d9f10ca11   metal-api   PUT                            /v1/size                                       201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:51.38882...   
2023-06-29 08:21:51   d2635121-67a0-4f58-ba2b-ee7c27c234c4   metal-api   PUT                            /v1/network                                    201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:51.43093...   
2023-06-29 08:21:51   87ff3117-1839-4582-a70a-89e010d28737   metal-api   PUT                            /v1/network                                    201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:51.45800...   
2023-06-29 08:21:51   649b8f2d-3e13-43db-8286-494f36845b6b   metal-api   PUT                            /v1/network                                    201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:51.47697...   
2023-06-29 08:21:51   95f103a4-bfe0-4ff7-8ea6-4e6455f57bc2   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   metal-stack   {"constraints":{"images":{"debian":"*...   
2023-06-29 08:21:51   c8b2451c-209f-4c16-b9d7-70a8257e3ae3   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   metal-stack   {"constraints":{"images":{},"sizes":[...   
2023-06-29 08:21:51   7342ffc0-3422-4e6e-9520-59fc806caafc   metal-api   PUT                            /v1/filesystemlayout                           201    [email protected]   metal-stack   {"constraints":{"images":{},"sizes":[...   
2023-06-29 08:21:51   cea647fc-3d16-427e-9d58-137d9f10ca11   metal-api   PUT                            /v1/size                                              [email protected]   metal-stack   {"constraints":[{"max":4,"min":1,"typ...   
2023-06-29 08:21:51   d2635121-67a0-4f58-ba2b-ee7c27c234c4   metal-api   PUT                            /v1/network                                           [email protected]   metal-stack   {"description":"Super network              
                                                                                                                                                                                                         of all ...                                 
2023-06-29 08:21:51   87ff3117-1839-4582-a70a-89e010d28737   metal-api   PUT                            /v1/network                                           [email protected]   metal-stack   {"description":"Virtual                    
                                                                                                                                                                                                         Internet Netw...                           
2023-06-29 08:21:51   649b8f2d-3e13-43db-8286-494f36845b6b   metal-api   PUT                            /v1/network                                           [email protected]   metal-stack   {"description":"Underlay                   
                                                                                                                                                                                                         Network for ...                            
2023-06-29 08:21:51   95f103a4-bfe0-4ff7-8ea6-4e6455f57bc2   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   metal-stack   {"constraints":{"images":{"debian":"*...   
2023-06-29 08:21:51   c8b2451c-209f-4c16-b9d7-70a8257e3ae3   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   metal-stack   {"constraints":{"images":{},"sizes":[...   
2023-06-29 08:21:51   7342ffc0-3422-4e6e-9520-59fc806caafc   metal-api   PUT                            /v1/filesystemlayout                                  [email protected]   metal-stack   {"constraints":{"images":{},"sizes":[...   
2023-06-29 08:21:50   7a7c4961-10a4-4beb-afc6-b67096349e94   metal-api   PUT                            /v1/image                                      201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:50.09938...   
2023-06-29 08:21:50   7a0cc6c6-885f-42c2-94a4-c153b4213988   metal-api   PUT                            /v1/image                                      201    [email protected]   metal-stack   {"changed":"2023-06-29T08:21:50.16144...   
2023-06-29 08:21:50   dae18b39-c546-4bc2-808f-94a371cedcf5   metal-api   PUT                            /v1/partition                                  201    [email protected]   metal-stack   {"bootconfig":{"commandline":"console...   
2023-06-29 08:21:50   7a7c4961-10a4-4beb-afc6-b67096349e94   metal-api   PUT                            /v1/image                                             [email protected]   metal-stack   {"description":"Firewall 2                 
                                                                                                                                                                                                         Ubuntu 202...                              
2023-06-29 08:21:50   7a0cc6c6-885f-42c2-94a4-c153b4213988   metal-api   PUT                            /v1/image                                             [email protected]   metal-stack   {"description":"Ubuntu 20.04               
                                                                                                                                                                                                         20230110...                                
2023-06-29 08:21:50   dae18b39-c546-4bc2-808f-94a371cedcf5   metal-api   PUT                            /v1/partition                                         [email protected]   metal-stack   {"bootconfig":{"commandline":"console...   

@vknabel vknabel requested a review from a team as a code owner June 29, 2023 08:46
@vknabel vknabel merged commit 218edcf into master Jun 29, 2023
@vknabel vknabel deleted the improved-audit-tableprinter branch June 29, 2023 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revisit default fields for audit ls
3 participants