# How to config sentitive field in KongPlugin?

**URL:** https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014
**Category:** Questions
**Tags:** kubernetes
**Created:** [April 14, 2020, 8:02am UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014 "2020-04-14T08:02:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dieunb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/dieunb/32/1858_2.png) [@dieunb](https://discuss.konghq.com/u/dieunb)
#### Post date: [April 14, 2020, 8:02am UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014/1 "2020-04-14T08:02:55Z")

</div>

We are running Kong on k8s with some custom plugins.  
One of them has one sensitive field that needs to hide. The configuration is following:

```
 apiVersion: configuration.konghq.com/v1
 kind: KongPlugin
 metadata:
   name: my-service-custom-plugin
 config:
   service_secret_key: "need_to_hide_this_value"
 plugin: my-custom-plugin

```

Can I use Kubernetes secret to apply in this case?, like below:

```
 apiVersion: configuration.konghq.com/v1
 kind: KongPlugin
 metadata:
   name: my-serivce-custom-plugin
 config:
   service_secret_key:
     valueFrom:
       secretKeyRef:
         key: secret_key
         name: custom-plugin-secret
 plugin: my-custom-plugin

```

Or anyone knows some ways, please help me. Thank you so much?

---

<div class="post-metadata">

### Author: ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)
#### Post date: [April 14, 2020, 5:39pm UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014/2 "2020-04-14T17:39:33Z")

</div>

Work is underway to handle this: we’re adding the ability to use a secret reference for plugin configuration rather than providing it directly in the KongPlugin, although it’s for the entire config rather than individual items.

---

<div class="post-metadata">

### Author: ![dieunb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/dieunb/32/1858_2.png) [@dieunb](https://discuss.konghq.com/u/dieunb)
#### Post date: [April 15, 2020, 3:41am UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014/3 "2020-04-15T03:41:43Z")

</div>

Could you share about the release time for that, @traines?

---

<div class="post-metadata">

### Author: ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)
#### Post date: [April 15, 2020, 5:31pm UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014/4 "2020-04-15T17:31:20Z")

</div>

I don’t have a specific timeline, but it is scheduled for the next minor release (0.9).

---

<div class="post-metadata">

### Author: ![dieunb](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/dieunb/32/1858_2.png) [@dieunb](https://discuss.konghq.com/u/dieunb)
#### Post date: [April 16, 2020, 3:19am UTC](https://discuss.konghq.com/t/how-to-config-sentitive-field-in-kongplugin/6014/5 "2020-04-16T03:19:39Z")

</div>

It is good for waiting. And thank you for your reply!
