Skip to content

Conversation

@AmitSahastra
Copy link
Contributor

No description provided.

@AmitSahastra AmitSahastra changed the title Pcp 1552 3 Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup. Sep 15, 2025
Copy link

@bulwark-spectrocloud bulwark-spectrocloud bot left a comment

Choose a reason for hiding this comment

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

⚠️ GoSec scan found code issues:

  1. G115: integer overflow conversion int64 -> int32, Severity: HIGH
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/controllers/lxd_initializer_ds.go:121:24
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/controllers/lxd_initializer_ds.go:118:23
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/controllers/lxd_initializer_ds.go:102:23
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/controllers/lxd_initializer_ds.go:142:11
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/controllers/lxd_initializer_ds.go:142:53
  2. G404: Use of weak random number generator (math/rand or math/rand/v2 instead of crypto/rand), Severity: HIGH
      1. File: /home/runner/_work/bulwark/bulwark/target-repo/lxd-initializer/lxd-initializer.go:636:22

Please review these findings and fix the issues before merging.

@AmitSahastra AmitSahastra merged commit e14886a into PCP-1552 Sep 16, 2025
3 of 4 checks passed
@AmitSahastra AmitSahastra deleted the PCP-1552_3 branch September 16, 2025 10:59
AmitSahastra added a commit that referenced this pull request Sep 17, 2025
* PCP-5152: Multiple node HCP cluster losing interface reference

* Additional changes (#225)

* Additional changes

* trust password and code cleanup (#226)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup. (#234)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* - Gosec fix
- Cleanup daemonset once all host are registered

* Additional changes

* Use hsotname for lxd registration. Code refactoring. (#240)

* Use hsotname for lxd registration. Code refactoring.

* merge conflict
github-actions bot pushed a commit that referenced this pull request Sep 17, 2025
* PCP-5152: Multiple node HCP cluster losing interface reference

* Additional changes (#225)

* Additional changes

* trust password and code cleanup (#226)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup. (#234)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* - Gosec fix
- Cleanup daemonset once all host are registered

* Additional changes

* Use hsotname for lxd registration. Code refactoring. (#240)

* Use hsotname for lxd registration. Code refactoring.

* merge conflict

(cherry picked from commit 5939162)
AmitSahastra added a commit that referenced this pull request Sep 17, 2025
…#244)

* PCP-5152: Multiple node HCP cluster losing interface reference

* Additional changes (#225)

* Additional changes

* trust password and code cleanup (#226)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup. (#234)

* Additional changes

* Add gate to registration logic, seperate it to initializer and put grace period. Code cleanup.

* - Gosec fix
- Cleanup daemonset once all host are registered

* Additional changes

* Use hsotname for lxd registration. Code refactoring. (#240)

* Use hsotname for lxd registration. Code refactoring.

* merge conflict

(cherry picked from commit 5939162)

Co-authored-by: Amit Sahastrabuddhe <[email protected]>
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