Skip to content
Kong Logo | Kong Docs Logo
search
  • We're Hiring!
  • Docs
    • Kong Gateway
    • Kong Konnect
    • Kong Mesh
    • Plugin Hub
    • decK
    • Kubernetes Ingress Controller
    • Insomnia
    • Kuma

    • Docs contribution guidelines
  • Plugin Hub
  • Support
  • Community
  • Kong Academy
Get a Demo Start Free Trial
  • Kong Gateway
  • Kong Konnect
  • Kong Mesh
  • Plugin Hub
  • decK
  • Kubernetes Ingress Controller
  • Insomnia
  • Kuma

  • Docs contribution guidelines
  • 3.3.x (latest)
  • 3.2.x
  • 3.1.x
  • 3.0.x
  • 2.8.x
  • 2.7.x
  • 2.6.x
  • Older Enterprise versions (2.1-2.5)
  • Older OSS versions (2.1-2.5)
  • Archive (pre-2.1)

github-edit-pageEdit this page

report-issueReport an issue

enterprise-switcher-iconSwitch to OSS

On this pageOn this page
  • Prerequisites
  • Set up basic authentication
Kong Gateway
3.3.x (latest)
  • Home
  • Kong Gateway
  • Kong Manager
  • Authentication and Authorization
  • Enable Basic Auth for Kong Manager

Enable Basic Auth for Kong Manager

Enable basic authentication on a Kong Manager instance.

Prerequisites

You have super admin permissions or a user that has /admins and /rbac read and write access.

Set up basic authentication

  1. In kong.conf, configure the following properties:

     enforce_rbac = on
     admin_gui_auth = basic-auth
     admin_gui_session_conf = { "secret":"set-your-string-here" }
    

    This enables RBAC, sets basic-auth as the authentication method, and creates a session secret.

    Kong Manager uses the Sessions plugin in the background. This plugin (configured with admin_gui_session_conf) requires a secret and is configured securely by default.

    • Under all circumstances, the secret must be manually set to a string.
    • If using HTTP instead of HTTPS, cookie_secure must be manually set to false.
    • If using different domains for the Admin API and Kong Manager, cookie_same_site must be set to Lax.

    Learn more about these properties in Session Security in Kong Manager, and see example configurations.

  2. Start or reload Kong and point to the kong.conf file:

     kong start [-c /path/to/kong/conf]
    
  3. Choose one of the following options:

    • If you created a super admin via database migration, log in to Kong Manager with the username kong_admin and the password set in the environment variable.

    • If you created a super admin via the Kong Manager Teams tab as described in How to Create a Super Admin, log in with the credentials you created after accepting the email invitation.

Thank you for your feedback.
Was this page useful?
  • Kong
    THE CLOUD CONNECTIVITY COMPANY

    Kong powers reliable digital connections across APIs, hybrid and multi-cloud environments.

    • Company
    • Customers
    • Events
    • Investors
    • Careers Hiring!
    • Partners
    • Press
    • Contact
  • Products
    • Kong Konnect
    • Kong Gateway
    • Kong Mesh
    • Get Started
    • Pricing
  • Resources
    • eBooks
    • Webinars
    • Briefs
    • Blog
    • API Gateway
    • Microservices
  • Open Source
    • Install Kong Gateway
    • Kong Community
    • Kubernetes Ingress
    • Kuma
    • Insomnia
  • Solutions
    • Decentralize
    • Secure & Govern
    • Create a Dev Platform
    • API Gateway
    • Kubernetes
    • Service Mesh
Star
  • Terms•Privacy
© Kong Inc. 2023