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

feature(agent,pkg): remove timed authentication #4022

Closed
wants to merge 3 commits into from

Conversation

henrybarreto
Copy link
Member

No description provided.

@henrybarreto henrybarreto self-assigned this Aug 2, 2024
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 434d164 to 24b3645 Compare August 2, 2024 13:09
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 24b3645 to 4de5ccb Compare August 13, 2024 19:06
@henrybarreto henrybarreto marked this pull request as ready for review August 13, 2024 20:35
@henrybarreto henrybarreto requested a review from a team as a code owner August 13, 2024 20:35
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 4de5ccb to 7270bfc Compare August 13, 2024 21:01
@henrybarreto henrybarreto changed the title chore!(agent,pkg): remove timed authentication chore(agent,pkg)!: remove timed authentication Aug 20, 2024
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 7270bfc to a40fb05 Compare August 20, 2024 20:53
@henrybarreto henrybarreto requested a review from a team as a code owner August 20, 2024 20:53
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from a40fb05 to 93d0c9f Compare August 20, 2024 21:03
@henrybarreto henrybarreto changed the title chore(agent,pkg)!: remove timed authentication feature(agent,pkg): remove timed authentication Aug 20, 2024
@henrybarreto henrybarreto added kind/feature New feature or request area/agent status/needs-review go Pull requests that update Go code Epic and removed do-not-merge labels Aug 20, 2024
@gustavosbarreto gustavosbarreto self-assigned this Aug 30, 2024
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 93d0c9f to 6ef1258 Compare September 18, 2024 12:46
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 6ef1258 to 9713079 Compare October 29, 2024 19:23
To replace the re-authentication process that could be required if the
server changed its API or SSH keys, we've added an a new error check on
the dial process, that verify whether a `401` error is returned when the
reverse tunnel is initialized to the server.
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch 2 times, most recently from e29fe6a to 652f881 Compare November 19, 2024 19:23
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from 652f881 to bffd81c Compare November 19, 2024 19:26
@henrybarreto henrybarreto force-pushed the chore/agent_remove_ping branch from c739e48 to fe513d7 Compare November 20, 2024 13:08
@henrybarreto henrybarreto marked this pull request as draft November 20, 2024 14:44
@henrybarreto
Copy link
Member Author

henrybarreto commented Nov 20, 2024

Authentication request is critical for the device presence on ShellHub, what makes its remotion difficult to do.

One of the main limitations is the addition of devices to a namespace. When it is initialized, it authenticates on the namespace, and starts to listen for connections. If the device, after being accepted, is removed, the Agent won't notice it until it loses the connection to the server, showing it as offline in the system.

To remove timed authentication, we should also be able to identify this deletion on the tunnel, or refactor core components for device to server communication, possibly breaking compatibility. JWT invalidation is also a problem, as the connection could also remain open while the tunnel is established.

@henrybarreto henrybarreto deleted the chore/agent_remove_ping branch January 8, 2025 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/agent Epic go Pull requests that update Go code kind/feature New feature or request status/needs-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants