Skip to content

Commit

Permalink
updating payload syncing flags
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Dec 13, 2024
1 parent 1630f03 commit e5b7dbf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.3.1-rc31] - 2024-12-13

### Changed

- Added an optional flag for payloads syncing to not retrigger the container's on_start functionality

## [3.3.1-rc30] - 2024-12-12

### Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc30
3.3.1-rc31
2 changes: 1 addition & 1 deletion mythic-docker/src/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1-rc30
3.3.1-rc31
6 changes: 4 additions & 2 deletions mythic-docker/src/rabbitmq/recv_pt_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type PayloadTypeSyncMessage struct {
PayloadType PayloadType `json:"payload_type"`
CommandList []Command `json:"commands"`
ContainerVersion string `json:"container_version"`
ForcedSync bool `json:"forced_resync"`
}
type BuildParameterType = string

Expand Down Expand Up @@ -399,9 +400,10 @@ func payloadTypeSync(in PayloadTypeSyncMessage) error {
go SendAllOperationsMessage(fmt.Sprintf("Successfully synced %s with container version %s", payloadtype.Name, in.ContainerVersion), 0, "debug", "info")
go database.ResolveAllOperationsMessage(getDownContainerMessage(payloadtype.Name), 0)
checkContainerStatusAddPtChannel <- payloadtype
go CreateGraphQLSpectatorAPITokenAndSendOnStartMessage(payloadtype.Name)
if !in.ForcedSync {
go CreateGraphQLSpectatorAPITokenAndSendOnStartMessage(payloadtype.Name)
}
return nil

}

func updatePayloadTypeBuildParameters(in PayloadTypeSyncMessage, payloadtype databaseStructs.Payloadtype) error {
Expand Down

0 comments on commit e5b7dbf

Please sign in to comment.