Skip to content
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

Remove EICE dead code #51107

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Remove EICE dead code #51107

merged 2 commits into from
Jan 16, 2025

Conversation

marcoandredinis
Copy link
Contributor

@marcoandredinis marcoandredinis commented Jan 16, 2025

Accessing EC2 instances using EC2 Instance Connect Endpoint was developed some releases ago:
However, due to strict quotas put in place by amazon, we decide to remove this feature.

Since v15.4.0 we hide this feature from the UI. This PR removes dead code:

  • removes the UI bits used during the Discovery flow
  • removes the teleport integrationn configure eice-iam command
  • removes API endpoinst that are no longer used
  • deprecates the unused gRPC calls

The following parts were kept, to ensure we don't break existing set ups:

  • auto discovery of ec2 instances using the EICE method
  • accessing Servers which have the ec2-ice subkind
  • kubernetes operator and terraform provider EICE resource management

We might remove those in the future, but for now, they will be kept.

@marcoandredinis marcoandredinis added the no-changelog Indicates that a PR does not require a changelog entry label Jan 16, 2025
/>
</EditorWrapper>
);
// TODO(marco): should we remove `ec2` from the AwsResourceKind?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can someone please help me here?

@marcoandredinis marcoandredinis marked this pull request as draft January 16, 2025 11:40
@marcoandredinis marcoandredinis force-pushed the marco/prevent_neweice_configs branch from 0f87eb7 to 8f703e3 Compare January 16, 2025 11:55
@marcoandredinis marcoandredinis marked this pull request as ready for review January 16, 2025 12:09
@github-actions github-actions bot requested a review from ryanclark January 16, 2025 12:09
@ryanclark
Copy link
Contributor

Since a couple of releases ago

Can you just clarify what releases in the PR body just in case anyone needs to know in the future?

@marcoandredinis
Copy link
Contributor Author

Can you just clarify what releases in the PR body just in case anyone needs to know in the future?

Edited the PR description to include the PR that removed the screen.
Thank you

@@ -200,6 +200,8 @@ func (s *AWSOIDCService) awsClientReq(ctx context.Context, integrationName, regi
}

// ListEICE returns a paginated list of EC2 Instance Connect Endpoints.
//
// Deprecated: Marked as deprecated in teleport/integration/v1/awsoidc_service.proto.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Delete schedule for these deprecated methods?
We usually add DELETE IN vX comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll schedule them to be deleted in v19

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from ravicious January 16, 2025 17:59
Accessing EC2 instances using EC2 Instance Connect Endpoint was
developed some releases ago.
However, due to strict quotas put in place by amazon, we decide to
remove this feature.

Since a couple of releases ago we hide this feature from the UI.
This PR removes dead code:
- removes the UI bits used during the Discovery flow
- removes the `teleport integrationn configure eice-iam` command
- removes API endpoinst that are no longer used
- deprecates the unused gRPC calls

The following parts were kept, to ensure we don't break existing set
ups:
- auto discovery of ec2 instances using the EICE method
- accessing Servers which have the ec2-ice subkind
- kubernetes operator and terraform provider EICE resource management

We might remove those in the future, but for now, they will be kept.
@marcoandredinis marcoandredinis force-pushed the marco/prevent_neweice_configs branch from 8f703e3 to 3d5d8a3 Compare January 16, 2025 18:18
@marcoandredinis marcoandredinis added this pull request to the merge queue Jan 16, 2025
Merged via the queue into master with commit 8f99076 Jan 16, 2025
46 checks passed
@marcoandredinis marcoandredinis deleted the marco/prevent_neweice_configs branch January 16, 2025 19:09
mvbrock pushed a commit that referenced this pull request Jan 18, 2025
* Remove EICE dead code

Accessing EC2 instances using EC2 Instance Connect Endpoint was
developed some releases ago.
However, due to strict quotas put in place by amazon, we decide to
remove this feature.

Since a couple of releases ago we hide this feature from the UI.
This PR removes dead code:
- removes the UI bits used during the Discovery flow
- removes the `teleport integrationn configure eice-iam` command
- removes API endpoinst that are no longer used
- deprecates the unused gRPC calls

The following parts were kept, to ensure we don't break existing set
ups:
- auto discovery of ec2 instances using the EICE method
- accessing Servers which have the ec2-ice subkind
- kubernetes operator and terraform provider EICE resource management

We might remove those in the future, but for now, they will be kept.

* add delete version notice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a PR does not require a changelog entry size/sm ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants