Improve How You Develop Cloud Native Applications Using Okteto.
Learn more!

Private Endpoints for your Applications

When you deploy applications in Okteto, you automatically get endpoints with valid SSL certificates. This way, you can develop and test your applications on a realistic, production-like environment, instead of localhost.

But not every endpoint in our application is meant to be publicly available. There are admin areas, dashboards, or even certain applications that you want to keep to yourself. We're happy to announce that Okteto Cloud now allows you to restrict access to your applications by marking its endpoints as private 🕵️‍♀️.

Who are you?

Private endpoints can only be accessed by Okteto users that have access to your namespace. When accessing a private endpoint, Okteto will automagically redirect the request to a separate authentication service to verify if the user has access to your namespace. If they do, they will be redirected to your application. If they don't, well... they shall not pass! (couldn't help it 🤭)

You shall not pass

Protecting your own application is simple. If you are using Okteto's automatic SSL endpoints, set the value of the dev.okteto.com/auto-ingress annotation to private in your service manifest:

apiVersion: v1
kind: Service
metadata:
  name: hello-world
  annotations:
    dev.okteto.com/auto-ingress: "private"
...

If you are bringing your own ingress, then you'll need to add the dev.okteto.com/private: "true" annotation to your manifest:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    dev.okteto.com/generate-host: "true"
    dev.okteto.com/private: "true"
...

More information on this topic is available in our docs.

We already updated several of the applications in the Okteto catalog to take advantage of this feature. Why you don't go ahead and try it out today?

Ramiro BerrellezaCEO & Co-founder View all posts

Related content

Okteto at KubeCon + CloudNativeCon EuropeOkteto at KubeCon + CloudNativeCon Europe

Okteto at KubeCon + CloudNativeCon Europe

Last week is something we here at Okteto will cherish for a long time! It was a huge milestone for us, as this was the first time we as a company were...

May 26, 2022
Avatar of Arsh SharmaAvatar of Arsh SharmaArsh Sharma

Maybe It's Time To Rethink How You've Been Developing?

Cloud-Native Applications Need Cloud-Native Development Environments We've seen a tremendous change in the way applications get deployed over the last...

March 09, 2022
Avatar of Arsh SharmaAvatar of Arsh SharmaArsh Sharma