Skip to content

Commit

Permalink
fix: make iam s3 object work similar to internal files
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcclelland committed Dec 18, 2023
1 parent ab43240 commit 3d6e37b
Show file tree
Hide file tree
Showing 4 changed files with 313 additions and 230 deletions.
38 changes: 20 additions & 18 deletions auth/iam.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,25 @@ type IAMService interface {
var ErrNoSuchUser = errors.New("user not found")

type Opts struct {
Dir string
LDAPServerURL string
LDAPBindDN string
LDAPPassword string
LDAPQueryBase string
LDAPObjClasses string
LDAPAccessAtr string
LDAPSecretAtr string
LDAPRoleAtr string
S3Access string
S3Secret string
S3Region string
S3Bucket string
S3Endpoint string
CacheDisable bool
CacheTTL int
CachePrune int
Dir string
LDAPServerURL string
LDAPBindDN string
LDAPPassword string
LDAPQueryBase string
LDAPObjClasses string
LDAPAccessAtr string
LDAPSecretAtr string
LDAPRoleAtr string
S3Access string
S3Secret string
S3Region string
S3Bucket string
S3Endpoint string
S3DisableSSlVerfiy bool
S3Debug bool
CacheDisable bool
CacheTTL int
CachePrune int
}

func New(o *Opts) (IAMService, error) {
Expand All @@ -78,7 +80,7 @@ func New(o *Opts) (IAMService, error) {
fmt.Printf("initializing LDAP IAM with %q\n", o.LDAPServerURL)
case o.S3Endpoint != "":
svc, err = NewS3(o.S3Access, o.S3Secret, o.S3Region, o.S3Bucket,
o.S3Endpoint)
o.S3Endpoint, o.S3DisableSSlVerfiy, o.S3Debug)
fmt.Printf("initializing S3 IAM with '%v/%v'\n",
o.S3Endpoint, o.S3Bucket)
default:
Expand Down
195 changes: 0 additions & 195 deletions auth/iam_proxy.go

This file was deleted.

Loading

0 comments on commit 3d6e37b

Please sign in to comment.