-
Notifications
You must be signed in to change notification settings - Fork 301
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
Development
: Add support for ephemeral SSH keys for the authentication of build agents
#8951
Conversation
…calci/build-agent-ssh
…calci/build-agent-ssh
…calci/build-agent-ssh
…calci/build-agent-ssh
…/Artemis into feature/localci/build-agent-ssh
Development
: Add support for ephemeral SSH keys for the authentication of build agents
WalkthroughThis update enhances the SSH authentication framework for build agents by integrating the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant GitPublickeyAuthenticatorService
participant BuildAgentSSHKeyService
participant SharedQueueManagementService
participant SshGitLocationResolverService
Client->>GitPublickeyAuthenticatorService: Send Public Key for Authentication
GitPublickeyAuthenticatorService->>BuildAgentSSHKeyService: Request Public Key Verification
BuildAgentSSHKeyService-->>GitPublickeyAuthenticatorService: Return Verification Result
GitPublickeyAuthenticatorService-->>Client: Return Authentication Success/Failure
activate Client
Client->>SshGitLocationResolverService: Request Repository Access
SshGitLocationResolverService->>GitPublickeyAuthenticatorService: Verify if Build Agent
GitPublickeyAuthenticatorService-->>SshGitLocationResolverService: Return Verification Result
SshGitLocationResolverService-->>Client: Grant/Deny Access
deactivate Client
This sequence diagram illustrates the high-level flow of SSH key-based authentication for a build agent, detailing the interactions between the client, Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Works as expected!
There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions. |
We wait until the exam phase is finished to avoid any issues based on config changes. This PR will be merged into the milestone 7.5.0 |
Integrated code lifecycle
: Provide Instructors more options to control container configuration
#9487
Checklist
General
Server
Changes affecting Programming Exercises
Motivation and Context
Artemis already supports SSH for cloning repos as a user.
In this pull request, we implement that build agents can also use SSH for cloning the repositories.
Description
For build agents, there is the new
BuildAgentSSHKeyService
. This service generates the SSH key pair on application startup and writes the SSH private key to a file.This file is used by the
GitService
later. This functionality already exists for other version control systems.Additionally, the public key of the build agent is put into the build agent information map provided by Hazelcast.
A core node checks an incoming request by comparing the public key to the public keys of all build agents and may eventually authenticate the build agent. In this case, the build agent is allowed to perform clone operations.
Steps for Testing
Note
Please test the functionality in this PR only on TS1. This PR needs special SSH server configuration.
Prerequisites:
Review Progress
Performance Review
Code Review
Manual Tests
Summary by CodeRabbit
New Features
Enhancements
BuildAgentInformation
structure for future extensibility.Tests
Bug Fixes