-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(oss): enable bucket access for ram role #194
Conversation
plugins/providers/oss/provider.go
Outdated
} | ||
|
||
return subParts[1], nil | ||
return "", fmt.Errorf("invalid account type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "", fmt.Errorf("invalid account type") | |
return "", fmt.Errorf("invalid account type: %q", accountType) |
plugins/providers/oss/provider.go
Outdated
mainAccountID := accountIDParts[3] | ||
roleNameParts := strings.Split(accountIDParts[4], "/") | ||
if len(roleNameParts) < 2 { | ||
return "", fmt.Errorf("invalid accountID format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "", fmt.Errorf("invalid accountID format") | |
return "", fmt.Errorf("invalid accountID format: %q", accountID) |
plugins/providers/oss/provider.go
Outdated
return "", fmt.Errorf("invalid accountID format") | ||
accountIDParts := strings.Split(accountID, ":") | ||
if len(accountIDParts) < 5 { | ||
return "", fmt.Errorf("invalid accountID format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "", fmt.Errorf("invalid accountID format") | |
return "", fmt.Errorf("invalid accountID format: %q", accountID) |
plugins/providers/oss/provider.go
Outdated
|
||
subParts := strings.Split(accountIDParts[1], ":") | ||
if len(subParts) < 2 { | ||
return "", fmt.Errorf("invalid accountID format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "", fmt.Errorf("invalid accountID format") | |
return "", fmt.Errorf("invalid accountID format: %q", accountID) |
plugins/providers/oss/provider.go
Outdated
if accountType == AccountTypeRAMUser { | ||
accountIDParts := strings.Split(accountID, "$") | ||
if len(accountIDParts) < 2 { | ||
return "", fmt.Errorf("invalid accountID format") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return "", fmt.Errorf("invalid accountID format") | |
return "", fmt.Errorf("invalid accountID format: %q", accountID) |
ae5b295
to
dee7cd4
Compare
dee7cd4
to
d8d1548
Compare
No description provided.