-
Notifications
You must be signed in to change notification settings - Fork 0
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
ok: true; | ||
message: string; | ||
id: string; | ||
event: T; |
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.
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 }; |
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.
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.
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.
lgtm
bab091a
into
miguelcampos/eng-1688-add-support-for-p0-request-ssh-group-group-id
This PR allows users to connect to nodes that have been granted group approval.