gaborgsomogyi opened a new pull request #16057: URL: https://github.com/apache/flink/pull/16057
## What is the purpose of the change The Flink Dashboard and HistoryServer lacks any kind of authentication but enterprise users are expecting that. In this PR I'm adding basic authentication. Please see [FLIP](https://docs.google.com/document/d/1NMPeJ9H0G49TGy3AzTVVJVKmYC0okwOtqLTSPnGqzHw/edit?usp=sharing) for further details. ## Brief change log - Added the necessary configurations (please see docs) - Added basic authentication to History Server - Added basic authentication to REST Client - Added basic authentication to REST Server - Added `commons-codec` dependency to `flink-runtime-web` because of MD5 usage - Made `TestRestServerEndpoint` public - Added various documentations ## Verifying this change The following automated tests has been added: - `RestBasicAuthITCase` - `HistoryServerBasicAuthTest` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): yes - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: no - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? yes - If yes, how is the feature documented? docs + JavaDocs -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org