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

Users can start a session for nodes with a group approval #60

Conversation

GGonryun
Copy link
Contributor

@GGonryun GGonryun commented Mar 26, 2024

This PR allows users to connect to nodes that have been granted group approval.

ok: true;
message: string;
id: string;
event: T;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The event payload has always been returned. We're just exposing it now via an interface.

if (!isPreexisting) print2("Waiting for access to be provisioned");

const requestData = await waitForProvisioning<AwsSsh>(authn, id);
const requestWithId = { ...requestData, id };
const requestWithId = { ...requestData, id, permission: event.permission };
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We rely on the returned permission object instead of waiting for the results of waitForProvisioning because SSH group requests workflow documents differ from SSH session request workflow documents.

If we use the permission value from the SSH group request document we won't have a real instance arn to ssh into.

@GGonryun GGonryun marked this pull request as ready for review March 26, 2024 22:43
@GGonryun GGonryun changed the title Users can start session for nodes with a group approval Users can start a session for nodes with a group approval Mar 26, 2024
@GGonryun GGonryun self-assigned this Mar 27, 2024
@GGonryun GGonryun requested review from nbrahms and gergas3 March 27, 2024 16:22
Copy link
Contributor

@gergas3 gergas3 left a comment

Choose a reason for hiding this comment

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

lgtm

@GGonryun GGonryun merged commit bab091a into miguelcampos/eng-1688-add-support-for-p0-request-ssh-group-group-id Mar 29, 2024
3 checks passed
@GGonryun GGonryun deleted the miguelcampos/eng-1798-users-can-start-session-for-nodes-with-a-group-approval branch March 29, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants