⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@KaliPatriot
Copy link
Collaborator

@KaliPatriot KaliPatriot commented Jan 25, 2026

What type of PR is this?

/kind feature

What this PR does / why we need it:

Changes the "View one beacon per host" feature on the create quest page to prioritize by both privilege level and transport type. It will always prefer the highest privilege level, and will choose GRPC over HTTP over DNS given both beacons are the same privilege level.

Example:
image
image

Which issue(s) this PR fixes:

Fixes #1627

@KaliPatriot KaliPatriot linked an issue Jan 25, 2026 that may be closed by this pull request
@KaliPatriot KaliPatriot requested a review from cmp5987 January 25, 2026 22:57
@github-actions
Copy link
Contributor

github-actions bot commented Jan 25, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
3101    ±0 3101    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#616 3101 3101 0 0 0 0 29.6s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
3101 0 0 5.4s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
eldritch: sys::dll_reflect_impl::tests::test_dll_reflect_starlark 1 5.4s 5.4s
eldritch-stdlib-tests: tests::test_all_tomes 3 5.1s 5.3s
eldritch-stdlib-tests: tests::test_all_tomes 3 5.1s 5.3s
eldritch-stdlib-tests: tests::test_all_tomes 3 5.1s 5.3s
eldritch: sys::dll_inject_impl::tests::test_dll_inject_simple 1 5.2s 5.2s
eldritch: sys::dll_reflect_impl::tests::test_dll_reflect_simple 1 5.2s 5.2s
eldritch-libsys: std::dll_inject_impl::tests::test_dll_inject_simple 1 5.2s 5.2s
eldritch: time::sleep_impl::tests::test_sleep 3 5.0s 5.1s
eldritch: time::sleep_impl::tests::test_sleep 3 5.0s 5.1s
eldritch: time::sleep_impl::tests::test_sleep 3 5.0s 5.1s

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

</FormLabel>
<Switch id='isOnePerHost' className="pt-1" colorScheme="purple" onChange={() => setViewOnlyOnePerHost((value) => !value)} />
</div>
<Tooltip label="Shows only the best beacon per host, prioritizing admin privileges and better transports (GRPC > HTTP > DNS)" placement="top">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit:
Change to something like:
'Show only one beacon per host, prioritizing admin privileges and more reliable transports.'

Its ok to not list out the specific order.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Additionally can you add these props to the tooltip
I think it may be good to potentially put the tooltip on the bottom, unless there is a reason you put it on top?

bg="white"
color="gray.600"
borderWidth="1px"
borderColor="gray.100"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No reason for top, just used to most tooltips being on top rather than bottom.

// Transport priority: GRPC > HTTP1 > DNS
const getTransportPriority = (transport: string | undefined): number => {
if (!transport) return 0;
const lowerTransport = transport.toLowerCase();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Transports are ENUMS . We shouldn't swap to lowercase and match on lowercase. Instead it seems like we could just check for the exact expected value.

I'd save toLowerCase() for scenarios where the value in the field is user input and we aren't exact matching.

@cmp5987
Copy link
Collaborator

cmp5987 commented Jan 29, 2026

LGTM, Thanks for the addition!

@cmp5987 cmp5987 merged commit f0db30f into main Jan 29, 2026
10 checks passed
@cmp5987 cmp5987 deleted the 1627-feature-view-one-beacon-per-host-prioritization-by-transport branch January 29, 2026 14:17
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.

[feature] View one beacon per host prioritization by transport

3 participants