[#375] Allow cross-account AWS IAM role assumption into opt-in regions#376
[#375] Allow cross-account AWS IAM role assumption into opt-in regions#376choopka wants to merge 1 commit into
Conversation
… opt-in regions Added authRegion drop-down list-box & variable to allow explicitly stating the region for authenticating with AWS IAM.
| return RegionUtils.getRegion(regionName); | ||
| } else { | ||
| return Region.getRegion(Regions.US_EAST_1); | ||
| public ListBoxModel doFillAuthRegionItems() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check
| return RegionUtils.getRegion(regionName); | ||
| } else { | ||
| return Region.getRegion(Regions.US_EAST_1); | ||
| public ListBoxModel doFillAuthRegionItems() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation
| return options; | ||
| } | ||
|
|
||
| public ListBoxModel doFillRegionNameItems() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check
| return options; | ||
| } | ||
|
|
||
| public ListBoxModel doFillRegionNameItems() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation
| return options; | ||
| } | ||
|
|
||
| public ListBoxModel doFillClusterItems(@QueryParameter String credentialsId, @QueryParameter String assumedRoleArn, @QueryParameter String regionName) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check
| return options; | ||
| } | ||
|
|
||
| public ListBoxModel doFillClusterItems(@QueryParameter String credentialsId, @QueryParameter String assumedRoleArn, @QueryParameter String regionName) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation
|
@Stericson appreciate your input here. Many thanks! |
Added authRegion drop-down list-box & variable to allow explicitly stating the region for authenticating with AWS IAM. This will address Issue #375 by permitting authentication with a region that is opted-in in the source AWS account, while accessing ECS clusters in an opt-in region in the target account (which is not opted-in for the source account).
The solution was adding an
authRegionlist-box to choose the region used for IAM authentication, which is stored in anauthRegionvariable. This box works in exactly the same manner as theregionNamevariable box, but by separating them it is now possible to authenticate with AWS IAM in region A while using ECS clusters in region B.Testing done by:
Submitter checklist