# Tctl security authentication

**URL:** <https://community.temporal.io/t/tctl-security-authentication/2777>\
**Category:** Community Support\
**Tags:** java-sdk, helm\
**Created:** [August 24, 2021, 4:19pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777 "2021-08-24T16:19:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phani](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/phani/32/1309_2.png) [@phani](https://community.temporal.io/u/phani)\
**Post date:** [August 24, 2021, 4:19pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777/1 "2021-08-24T16:19:17Z")

</div>

How do we secure tctl commands . Can we pass authentication when running tctl commands .  
Our kube team may not accept running tctl commands by login in docker ssh .

We may go via ingress can we secure with basic auth or JWT .

---

<div class="post-metadata">

**Author:** ![Rob\_Temporal](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/rob_temporal/32/1079_2.png) [@Rob\_Temporal](https://community.temporal.io/u/Rob_Temporal)\
**Post date:** [August 25, 2021, 3:02pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777/2 "2021-08-25T15:02:37Z")

</div>

tctl supports plugins which can be used to set headers on outgoing requests. We ship an example plugin which supports basic auth: [temporal/main.go at master · temporalio/temporal · GitHub](https://github.com/temporalio/temporal/blob/master/cmd/tools/cli/plugins/authorization/main.go)

The plugin above is shipped alongside tctl in the homebrew package and docker container.

---

<div class="post-metadata">

**Author:** ![phani](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/phani/32/1309_2.png) [@phani](https://community.temporal.io/u/phani)\
**Post date:** [August 25, 2021, 3:32pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777/3 "2021-08-25T15:32:10Z")

</div>

Hi bod,

Thank you for the response . Do we need to do any setting on temporal server to authenticate token sent from tctl .

Do we have any samples of tctl set headers .

Thanks  
phani

---

<div class="post-metadata">

**Author:** ![SergeyBykov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sergeybykov/32/335_2.png) [@SergeyBykov](https://community.temporal.io/u/SergeyBykov)\
**Post date:** [August 25, 2021, 5:04pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777/4 "2021-08-25T17:04:35Z")

</div>

> Do we need to do any setting on temporal server to authenticate token sent from tctl .

Yes, you need to set up authentication/authorization as described in [this doc page](https://docs.temporal.io/docs/server/security/#authorization).

---

<div class="post-metadata">

**Author:** ![phani](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/phani/32/1309_2.png) [@phani](https://community.temporal.io/u/phani)\
**Post date:** [August 26, 2021, 11:57am UTC](https://community.temporal.io/t/tctl-security-authentication/2777/5 "2021-08-26T11:57:12Z")

</div>

Hi ,

Can you please help me understand the below queries .

1. Do we have any relevant JAVA API ?
2. Do we need to implement this interface in worker or we need to implement in temporal server( with go code ) and re-package the docker-image and deploy again ?

Thanks  
phani

---

<div class="post-metadata">

**Author:** ![SergeyBykov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sergeybykov/32/335_2.png) [@SergeyBykov](https://community.temporal.io/u/SergeyBykov)\
**Post date:** [August 26, 2021, 3:35pm UTC](https://community.temporal.io/t/tctl-security-authentication/2777/6 "2021-08-26T15:35:46Z")

</div>

> 1. Do we have any relevant JAVA API ?

No

> 1. Do we need to implement this interface in worker or we need to implement in temporal server( with go code ) and re-package the docker-image and deploy again ?

Yes. You’d need to implement the interface(s), inject your ClaimMapper/Authorizer implementation via [server options](https://docs.temporal.io/docs/server/options/), build server code and docker image, and deploy the customized version.
