Skip to content

Commit

Permalink
[PLAT-14030]Enable imdsv2 by default
Browse files Browse the repository at this point in the history
Summary: Changes to enable IMDSv2 by default on UI and backend.

Test Plan: Verified by creating AWS universe. ITests.

Reviewers: #yba-api-review!, svarshney

Reviewed By: svarshney

Subscribers: svarshney, yugaware

Differential Revision: https://phorge.dev.yugabyte.com/D38455
  • Loading branch information
asharma-yb committed Sep 29, 2024
1 parent d8e4d30 commit 68d47f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static class BundleInfo {

@ApiModelProperty private String sshUser;
@ApiModelProperty private Integer sshPort;
@ApiModelProperty public boolean useIMDSv2 = false;
@ApiModelProperty public boolean useIMDSv2 = true;

public void setSshUser(String sshUser) {
this.sshUser = sshUser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class AWSCloudInfo implements CloudInfoInterface {
@YBADeprecated(sinceYBAVersion = "2.20.3", sinceDate = "2024-04-10")
@ApiModelProperty
@EditableInUseProvider(name = "IMDSv2 Required", allowed = false)
public Boolean useIMDSv2;
public Boolean useIMDSv2 = true;

@JsonAlias("HOSTED_ZONE_ID")
@ApiModelProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const AddLinuxVersionModal: FC<AddLinuxVersionModalProps> = ({
details: {
arch: ArchitectureType.X86_64,
sshPort: 22,
...(showIMDSv2 && { useIMDSv2: false })
...(showIMDSv2 && { useIMDSv2: true })
},
...editDetails
},
Expand Down

0 comments on commit 68d47f3

Please sign in to comment.