Ad Widget

Collapse

Zabbix has plan to integrate Keycloak as SSO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ming Li
    Junior Member
    • Feb 2017
    • 4

    #1

    Zabbix has plan to integrate Keycloak as SSO

    Now Zabbix has three authentication types to authenticate user:
    Internal, HTTP, LDAP
    Does Zabbix want to enhance to use Keycloak as another optional authentication approach?

    We now want to do such enhancement in Zabbix. Can our such enhancement be contributed back to Zabbix.
  • Alex.S
    Senior Member
    • Feb 2012
    • 258

    #2
    Hi Ming Li,

    Welcome to the forum!

    There are no fixed plans for adding Keycloak to Zabbix at this stage, but we are open to suggestions Is this enhancement something you've already done yourself, or more of a desired functionality you want to us to implement? In case of the latter, please drop me a line to sales @ zabbix.com to discuss it in more detail.

    Cheers,

    Alex.

    Comment

    • Ming Li
      Junior Member
      • Feb 2017
      • 4

      #3
      Alex,

      We want to develop ourselves. I want to consult how we can contribute our enhancements into Zabbix.

      Ming Li

      Comment

      • Alex.S
        Senior Member
        • Feb 2012
        • 258

        #4
        Gotcha! Well, the easiest way would be to share your enhancement here: https://share.zabbix.com/

        Comment

        • Alex.S
          Senior Member
          • Feb 2012
          • 258

          #5
          Question though, do you specifically need Keycloak as SSO or would you consider other options too?

          Comment

          • jan.garaj
            Senior Member
            Zabbix Certified Specialist
            • Jan 2010
            • 506

            #6
            Keycloak is just an identity provider (IDP). In the theory, any IDP (Google, Facebook, ...) can be used for the authentification.

            IMHO it's already easy to use Keycloak (or any IDP) for Zabbix authentication. Just add properly configured keycloak-proxy in front of Zabbix frontend.
            Zabbix authorization (!= authentication) is a problem because that one will need Zabbix code change (for example JWT support).
            Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
            My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

            Comment

            • zhiyuan
              Junior Member
              • Jul 2018
              • 3

              #7
              hi, Alex and Jan,
              we complete the zabbix-integrate with keycloak.
              Is there a simple/quick way to post my code for your review?
              Abstract for our solution:
              1. Package the authentication-relevant-php-files as a RPM (: named zabbix-keycloak-plugins)
              2. install zabbix-keycloak-plugins after zabbix-official rpms
              3. USER request zabbix
              4. zabbix-redirect User to keycloak server
              5. Keycloak AUTH ok, return "code" and "state" to zabbix
              6. zabbix exchange JWT token from keycloak with "code" and "state"
              7. zabbix store JWT token into DB and parse JWT Token.
              8. Based on Parsed JWT token, zabbix build the authentication Array (:The Array, zabbix used for INTERNAL authentication method)
              9. USER access Zabbix...
              The picture show the simple UI from USERs perspective.

              So, ask again,
              Is there a simple/quick way to post my code for your review? (Only SVN procedure?)






              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                Thank you. The corresponding ZBXNEXT was created by zhiyuan : https://support.zabbix.com/browse/ZBXNEXT-4640

                Comment

                • zhiyuan
                  Junior Member
                  • Jul 2018
                  • 3

                  #9
                  hi,zabbix official:
                  Can you give me the guide to do this contribute-back action?

                  Comment

                  • kloczek
                    Senior Member
                    • Jun 2006
                    • 1771

                    #10
                    According to Keycloak documentation it can integrate underneath LDAP. If Keycloak will be using as backend storage LDAP you don't need to use straight Keycloak and nothing in zabbix needs to be adapted.
                    Just check is your setup is using LDAP as backlend storage.
                    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
                    https://kloczek.wordpress.com/
                    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
                    My zabbix templates https://github.com/kloczek/zabbix-templates

                    Comment

                    • zhiyuan
                      Junior Member
                      • Jul 2018
                      • 3

                      #11
                      Hi, upload this feature to https://share.zabbix.com/ is ok for review by you ?

                      Comment

                      • mikco
                        Junior Member
                        • Apr 2019
                        • 11

                        #12
                        Hi...... imposible to run in zabbix 4.2.x, any idea?

                        Comment

                        • Mechanix
                          Member
                          • Jan 2017
                          • 92

                          #13
                          Our company also has a demand to integrate sso. Any plans to have this feature (officially) integrated in zabbix? Thanks

                          Comment

                          Working...