ExpediaGroup / waggle-dance

Hive federation service. Enables disparate tables to be concurrently accessed across multiple Hive deployments.
Apache License 2.0
266 stars 74 forks source link

Support Audit Log For waggle-dance #324

Closed jueshali closed 1 month ago

jueshali commented 2 months ago

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Add audit log for waggle dance

Describe alternatives you've considered By hook

Additional context Add any other context or screenshots about the feature request here.

jmnunezizu commented 2 months ago

Hi @jueshali – please include additional information about your issue. If it's a feature request, you should include:

  1. How do you see it working?
  2. Why do you need this feature?

Thanks.

jueshali commented 1 month ago

How do you see it working? This function can audit user access requests on the server side. Record client IP, UGI, etc.

Why do you need this feature? This function can help me locate some abnormal business requests, such as delete drop and other unusual user request, same as metastore's audit

jmnunezizu commented 1 month ago

@jueshali – have you considered using Ranger (https://cwiki.apache.org/confluence/display/RANGER/Ranger+Plugin+for+Hive+MetaStore)?

jueshali commented 1 month ago

Ranger can auditing authentication behaviors, but we also want to record the number of partitions returned and whether there are behaviors such as scanning the entire table. This will help us locate anomalous jobs.

jueshali commented 1 month ago
2024-07-10 09:33:16,686 INFO HiveMetaStore.audit: ugi=xxx    ip=xx.xx.xx.95 cmd=get_table size=     

this is example for hive meta audit log

jueshali commented 1 month ago

@jmnunezizu hello,This is important for us, I will implement this feature in our internal version. Can you give me some code development advice? tks

patduin commented 1 month ago

We added this this not so long ago does that help: https://github.com/ExpediaGroup/waggle-dance/tree/main/waggle-dance-core/src/main/java/com/hotels/bdp/waggledance/server#L57

jueshali commented 1 month ago

very outstanding work thks

patduin commented 1 month ago

I'll close this then.