-
Notifications
You must be signed in to change notification settings - Fork 174
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0e232a5
BED-5723: Sets default layout to sequential (#1350)
benwaples 5a61def
BED-5551: Clicking on node item in Edge Composition or Relay Targets …
specter-flq 7d9c1c7
fix(migrations): DarkMode feature flag as non-editable (#1354)
kpom-specter 7ffa91b
BED-4715: add default config value for collectors bucket (#1366)
wes-mil c73c870
fix: conditioned setting relationship search params to under limit (#…
specter-flq 926e8cb
fix: move migrations to existing file (#1364)
rvazarkar f929e3e
chore: bump sharphound versions for release (#1374)
rvazarkar 56e98ee
BED-5732: Fix Collapse All button in Entity/Edge panels (#1375)
specter-flq c6a004c
BED-5765: Preserve `environmentId` query param through links (#1376)
maffkipp 9994078
chore: update sharphound collectors to 2.6.5 (#1380)
rvazarkar 6d1a58f
Delete all false smbsigning values (#1378)
rvazarkar cc9ca36
Merge branch 'main' into stage/v7.3.0
neumachen 6d0bad1
chore(pfc): v7.3.0 merge to main
neumachen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// Copyright 2025 Specter Ops, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package migrations_test | ||
|
||
import ( | ||
"context" | ||
"errors" | ||
"testing" | ||
|
||
"github.com/specterops/bloodhound/dawgs/graph" | ||
"github.com/specterops/bloodhound/dawgs/ops" | ||
"github.com/specterops/bloodhound/dawgs/query" | ||
"github.com/specterops/bloodhound/graphschema" | ||
"github.com/specterops/bloodhound/graphschema/ad" | ||
"github.com/specterops/bloodhound/src/migrations" | ||
"github.com/specterops/bloodhound/src/test/integration" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestVersion_730_Migration(t *testing.T) { | ||
testContext := integration.NewGraphTestContext(t, graphschema.DefaultGraphSchema()) | ||
|
||
t.Run("Migration_v730 Success", func(t *testing.T) { | ||
testContext.DatabaseTestWithSetup(func(harness *integration.HarnessDetails) error { | ||
harness.Version730_Migration.Setup(testContext) | ||
return nil | ||
}, func(harness integration.HarnessDetails, db graph.Database) { | ||
err := migrations.Version_730_Migration(context.Background(), db) | ||
require.Nil(t, err) | ||
|
||
db.ReadTransaction(context.Background(), func(tx graph.Transaction) error { | ||
computers, err := ops.FetchNodes(tx.Nodes().Filter(query.Kind(query.Node(), ad.Computer))) | ||
|
||
require.Nil(t, err) | ||
|
||
for _, computer := range computers { | ||
if computer.ID == harness.Version730_Migration.Computer1.ID { | ||
smbSigning, err := computer.Properties.Get(ad.SMBSigning.String()).Bool() | ||
require.Nil(t, err) | ||
require.True(t, smbSigning) | ||
} else { | ||
_, err := computer.Properties.Get(ad.SMBSigning.String()).Bool() | ||
require.Error(t, err) | ||
require.True(t, errors.Is(err, graph.ErrPropertyNotFound)) | ||
} | ||
} | ||
|
||
return nil | ||
}) | ||
}) | ||
}) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BED-5708 Merge stage/v7.3.0 to main #1395
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