Hi,

While testing the Ceph RGW plugin [0] for the Object Store driver I noticed the bucket browser isn't working.

So I debugged my Firefox browser and I noticed that it tries to connect to http://ceph01.holfra.eu/ (not SSL) while the store's URL is httpS://ceph01.holfra.eu/

My debugger says:

"Blocked loading mixed active content http://ceph01.holfra.eu/wido02?location”request.js:150:9";

I looked at ObjectStoreBrowser.vue [1] and found this piece of code:

    initMinioClient () {
      if (!this.client) {
const url = /https?:\/\/([^/]+)\/?/.exec(this.resource.url.split(this.resource.name)[0])[1]
        const isHttps = /^https/.test(url)
        this.client = new Minio.Client({
          endPoint: url.split(':')[0],
port: url.split(':').length > 1 ? parseInt(url.split(':')[1]) : isHttps ? 443 : 80,
          useSSL: isHttps,
          accessKey: this.resource.accesskey,
          secretKey: this.resource.usersecretkey
        })
        this.listObjects()
      }
    },


Based on if the URL starts with http or https it should select SSL or not, but in my case it selects HTTP while the URL contains HTTPS.

My JavaScript is a bit rusty, anybody else with ideas?

Wido

[0]: https://github.com/apache/cloudstack/pull/8389
[1]: https://github.com/apache/cloudstack/blob/1411da1a22bc6aa26634f3038475e3d5fbbcd6bb/ui/src/components/view/ObjectStoreBrowser.vue#L449

Reply via email to