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

NS Agent auth with NS API #5127

Merged
merged 9 commits into from
Nov 21, 2024
Merged

NS Agent auth with NS API #5127

merged 9 commits into from
Nov 21, 2024

Conversation

dynco-nym
Copy link
Contributor

@dynco-nym dynco-nym commented Nov 13, 2024

  • NS Agent authenticates with key that was registered with NS API
  • added flag to Agent to generate keypairs
  • agent requests are signed by agent
  • server-side requests are checked for authentication

This change is Reviewable

@dynco-nym dynco-nym added this to the Magura milestone Nov 13, 2024
Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-nextra ⬜️ Ignored (Inspect) Visit Preview Nov 20, 2024 11:21pm
nym-explorer ⬜️ Ignored (Inspect) Visit Preview Nov 20, 2024 11:21pm
nym-next-explorer ⬜️ Ignored (Inspect) Visit Preview Nov 20, 2024 11:21pm

@dynco-nym dynco-nym force-pushed the dz-agent-auth branch 3 times, most recently from 659e1a0 to ac0e840 Compare November 13, 2024 15:14
nym-node-status-agent/src/cli/mod.rs Show resolved Hide resolved
nym-node-status-api/launch_node_status_api.sh Outdated Show resolved Hide resolved
nym-node-status-api/src/cli/mod.rs Outdated Show resolved Hide resolved
nym-node-status-api/src/http/api/testruns.rs Outdated Show resolved Hide resolved
common/models/src/ns_api.rs Outdated Show resolved Hide resolved
common/models/src/ns_api.rs Outdated Show resolved Hide resolved
nym-node-status-api/src/http/api/testruns.rs Outdated Show resolved Hide resolved
nym-node-status-api/src/http/error.rs Outdated Show resolved Hide resolved
nym-node-status-agent/src/cli/run_probe.rs Outdated Show resolved Hide resolved
@benedettadavico benedettadavico changed the base branch from release/2024.13-magura to develop November 18, 2024 11:47
@benedettadavico benedettadavico modified the milestones: Magura, Crunch Nov 18, 2024
- also adjust agent run script to authenticate, even in parallel
- moved agent API calls to Client struct
- introduce a new column last_assigned which is different than
  created_at so that stale testruns get cleaned up based on
  last_assigned
- created_at is still useful for determining the "oldest" testrun
  to be picked up
Copy link
Contributor

@jstuczyn jstuczyn left a comment

Choose a reason for hiding this comment

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

🚢 it

nym-node-status-agent/run.sh Outdated Show resolved Hide resolved
nym-node-status-agent/Cargo.toml Show resolved Hide resolved
- remove assigned_agent column
- remove logic which would stop agents with
  the same key to connect
- as a safety measure, add cap to total no. of agents
@dynco-nym dynco-nym merged commit 3f072e4 into develop Nov 21, 2024
17 of 18 checks passed
@dynco-nym dynco-nym deleted the dz-agent-auth branch November 21, 2024 13: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.

3 participants