16171: Change issuer config to string to avoid trailing-slash pain.
[arvados.git] / sdk / go / arvados / config.go
index 7ab8d9e1f64e0260125a010be633062cb4305fa9..dbd9f71099619203bb38f4dd1118b865f5c2f662 100644 (file)
@@ -156,6 +156,12 @@ type Cluster struct {
                        ClientSecret            string
                        AlternateEmailAddresses bool
                }
+               OpenIDConnect struct {
+                       Enable       bool
+                       Issuer       string
+                       ClientID     string
+                       ClientSecret string
+               }
                PAM struct {
                        Enable             bool
                        Service            string
@@ -259,12 +265,14 @@ type Volume struct {
 }
 
 type S3VolumeDriverParameters struct {
+       IAMRole            string
        AccessKey          string
        SecretKey          string
        Endpoint           string
        Region             string
        Bucket             string
        LocationConstraint bool
+       V2Signature        bool
        IndexPageSize      int
        ConnectTimeout     Duration
        ReadTimeout        Duration
@@ -326,6 +334,10 @@ func (su *URL) UnmarshalText(text []byte) error {
        u, err := url.Parse(string(text))
        if err == nil {
                *su = URL(*u)
+               if su.Path == "" && su.Host != "" {
+                       // http://example really means http://example/
+                       su.Path = "/"
+               }
        }
        return err
 }