The current rate limiting is not effective in non KRB environments

Open
#323 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
backend, security

Research direction

Start by reviewing the rate-limiting change from pull request 314 and the set_ugi call in HiveMetaStoreClient.java. Compare the audit logs and UGI behavior in Kerberos and non-Kerberos environments; the work is complete only when the desired rate-limiting behavior and user identification are defined and verified in both modes.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. For example - I'm always frustrated when [...]
The current rate limiting has been introduced from https://github.com/ExpediaGroup/waggle-dance/pull/314.
But when we tested it, we found that it didn't work in krb environment.

Describe the solution you'd like
According to the log, users are all empty, as follows .
08:36:28.243 [pool-6-thread-198] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:shutdown, args:null]
08:37:15.882 [pool-6-thread-143] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:getThreadId, args:null]
08:37:15.883 [pool-6-thread-143] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:get_current_notificationEventId, args:null]

After investigation, we found that the current limiting depends on ugi, and the ugi of WD comes from calling the set_ugi method. The call to set_ugi comes from the client of WD. But this client call can only be called in non secure mode (non KRB).

The following code in class HiveMetaStoreClient.java can illustrate :
WechatIMG2289

Describe alternatives you've considered
Perhaps we need to set up ugi in the KRB environmen.

Additional context
For now, we don't need the current limiting. Perhaps I will implement it when needed in the future.

Dominant language
Java
Stars
289
Forks
79
Avg merge
1d 18h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExpediaGroup/waggle-dance

All issues in ExpediaGroup/waggle-dance

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.