You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Viktor Borisov <vi...@gmail.com> on 2023/04/19 14:46:26 UTC

Hiding internal Job Manager configs in Web UI

Hi, community!

Is there a way to filter what options are displayed in Web UI under the Job Manager -> Configuration tab? Specifically, I need to hide "$internal.application.program-args". This option is displayed when running an Application Cluster in Kubernetes.

I use Flink 1.15.

Best regards,

Viktor

Re: Hiding internal Job Manager configs in Web UI

Posted by Weihua Hu <hu...@gmail.com>.
Hi, Viktor

We cannot hide "$internal.application.program-args" currently. Only
configuration options whose key contains "SENSITIVE_KEYS" will be hidden.

So, as an alternative, you might want to try passing some hidden
information through the environment variable[1], and name it
with  "SENSITIVE_KEYS" , such as: containerized.master.env.password=xxx

[1]
https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/config/#forwarding-environment-variables

Best,
Weihua


On Thu, Apr 20, 2023 at 9:47 AM Shammon FY <zj...@gmail.com> wrote:

> Hi Viktor
>
> If you can change your option name contains any following specific
> keywords, the flink web ui will hidden the value
>
>     // the keys whose values should be hidden
>     private static final String[] SENSITIVE_KEYS =
>             new String[] {
>                 "password",
>                 "secret",
>                 "fs.azure.account.key",
>                 "apikey",
>                 "auth-params",
>                 "service-key",
>                 "token",
>                 "basic-auth",
>                 "jaas.config"
>             };
>
> Best,
> Shammon FY
>
>
> On Wed, Apr 19, 2023 at 10:47 PM Viktor Borisov <
> victor.d.borisov@gmail.com> wrote:
>
>> Hi, community!
>>
>> Is there a way to filter what options are displayed in Web UI under the
>> Job Manager -> Configuration tab? Specifically, I need to hide
>> "$internal.application.program-args". This option is displayed when running
>> an Application Cluster in Kubernetes.
>>
>> I use Flink 1.15.
>>
>> Best regards,
>>
>> Viktor
>
>

Re: Hiding internal Job Manager configs in Web UI

Posted by Shammon FY <zj...@gmail.com>.
Hi Viktor

If you can change your option name contains any following specific
keywords, the flink web ui will hidden the value

    // the keys whose values should be hidden
    private static final String[] SENSITIVE_KEYS =
            new String[] {
                "password",
                "secret",
                "fs.azure.account.key",
                "apikey",
                "auth-params",
                "service-key",
                "token",
                "basic-auth",
                "jaas.config"
            };

Best,
Shammon FY


On Wed, Apr 19, 2023 at 10:47 PM Viktor Borisov <vi...@gmail.com>
wrote:

> Hi, community!
>
> Is there a way to filter what options are displayed in Web UI under the
> Job Manager -> Configuration tab? Specifically, I need to hide
> "$internal.application.program-args". This option is displayed when running
> an Application Cluster in Kubernetes.
>
> I use Flink 1.15.
>
> Best regards,
>
> Viktor