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

feat(rust): add command to retrieve the identity listening at some endpoint #8829

Merged
merged 2 commits into from
Mar 4, 2025

Conversation

polvorin
Copy link
Member

  • add "ockam secure-channel peer-info" command to retrieve the identity listening at some endpoint.
pablo@Pablos-MacBook-Pro debug % ./ockam secure-channel peer-info --to  /dnsaddr/orchestrator.ockam.io/tcp/6252/service/api --output json
{
  "change_history": "81825858830101585385f6820181584104ebf9d78281a04f180029c12a74e994386c7c9fee24903f3bfe351497a9952758ee5f4b57d7ed6236ab5082ed85e1ae8c07d5600e0587f652d36727904b3e310df41a656a365d1a7836395d820181584050bf79071ecaf08a966228c712295a17da53994dc781a22103602afe656276ef83ba83a1004845b1e979e0944abff3cd8c7ceef834a8f5eeeca0e8f720fa38f4",
  "identifier": "I84502ce0d9a0a91bae29026b84e19be69fb4203a6bdd1424c85a43c812772a00"
}
  • add hidden option to ockam project ticket to avoid calling orchestrator' controller when generating and enrollment ticket. This is needed in any self managed scenario: an authority is started (preconfigured with our identity as valid enroller), a relay node is started, a project.json file is generated to use the above authority and relay. We use ockam project import to import the project' definition. Then try to generate an enrollment ticket with ockam project ticket

@polvorin polvorin requested a review from a team as a code owner February 28, 2025 00:19
@polvorin polvorin force-pushed the polvorin/cmd-additions branch 3 times, most recently from 78ba842 to c0a5176 Compare February 28, 2025 16:57
…dpoint

add "ockam secure-channel peer-info" command to retrieve the identity listening at some endpoint.
Add hidden option to avoid calling orchestrator controller when generating enrollment ticket.
@polvorin polvorin force-pushed the polvorin/cmd-additions branch from c0a5176 to 6762bf9 Compare February 28, 2025 17:29
Copy link
Member

@adrianbenavides adrianbenavides left a comment

Choose a reason for hiding this comment

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

Not 100% convinced about the command name and the --to argument name, but we can change that in a separate PR

@polvorin polvorin added this pull request to the merge queue Mar 4, 2025
Merged via the queue into develop with commit 59f6d4a Mar 4, 2025
29 checks passed
@polvorin polvorin deleted the polvorin/cmd-additions branch March 4, 2025 17:06
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