• Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major Major
    • influxdb-plugin
    • None

      InfluxDB cloud is becoming more and more popular and flux seems to be the future of Influx. Adding support for InfluxDB cloud (connect with organisation/token) would be beneficial

          [JENKINS-65830] Support token based authentication

          Stefan created issue -

          Aleksi Simell added a comment -

          Hi stefan_bie

          Does InfluxDB cloud have a different API from InfluxDB 2.0? Or do you mean that connect only with org and token?

          Aleksi Simell added a comment - Hi stefan_bie Does InfluxDB cloud have a different API from InfluxDB 2.0? Or do you mean that connect only with org and token?

          Stefan added a comment -

          Hi aleksisimell, thanks for the reply! I think it uses the same API as in Influxdb2.0 (Flux queries), so it is just the connection that differs.

           

          Stefan added a comment - Hi aleksisimell , thanks for the reply! I think it uses the same API as in Influxdb2.0 (Flux queries), so it is just the connection that differs.  

          Aleksi Simell added a comment -

          Hmmh, that would require just a tad of refactoring. Plugin version 3.0 changed credentials management to use the credentials-plugin and the InfluxDBClientOptions are created (username and password parsed, organization and bucket assigned) before creating the InfluxDB connection. My near future is a bit busy, so this will probably hang until the end of summer.

          Aleksi Simell added a comment - Hmmh, that would require just a tad of refactoring. Plugin version 3.0 changed credentials management to use the credentials-plugin and the InfluxDBClientOptions are created (username and password parsed, organization and bucket assigned) before creating the InfluxDB connection. My near future is a bit busy, so this will probably hang until the end of summer.

          Stefan added a comment -

          I would be great if you could do that, for me it would mean that I can use it in my current project

          Stefan added a comment - I would be great if you could do that, for me it would mean that I can use it in my current project

          Chad added a comment - - edited

          I'm also hitting this issue with InfluxDB OSS 2.0 so it doesn't only affect cloud. I'm unable to get basic auth working for my instance, not sure if I need to configure something on my installation to enable it. I was able to get basic auth working, but I'd rather use tokens which have better access control.

          Chad added a comment - - edited I'm also hitting this issue with InfluxDB OSS 2.0 so it doesn't only affect cloud. I'm unable to get basic auth working for my instance, not sure if I need to configure something on my installation to enable it. I was able to get basic auth working, but I'd rather use tokens which have better access control.
          Aleksi Simell made changes -
          Link New: This issue is duplicated by JENKINS-65963 [ JENKINS-65963 ]
          Aleksi Simell made changes -
          Summary Original: Support for InfluxDB cloud New: Support token based authentication

          Helow cengler! Could share what you have done to connect with InfluxDB 2.0? Thanks!

          Rivaldo Pereira added a comment - Helow  cengler ! Could share what you have done to connect with InfluxDB 2.0? Thanks!

          Chad added a comment -

          I created a "Username and password" credential that can be used to login to my InfluxDB instance and used that in the credential setting of the plugin.

          Chad added a comment - I created a "Username and password" credential that can be used to login to my InfluxDB instance and used that in the credential setting of the plugin.

            aleksisimell Aleksi Simell
            stefan_bie Stefan
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: