Skip to content

Commit

Permalink
Linked all library variable sets
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Jul 22, 2024
1 parent 854ae16 commit 0302117
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,21 +249,6 @@ jobs:
GOOS: linux
GOARCH: amd64
CGO_ENABLED: 1
# - run: go build -ldflags="-X 'main.Version=${{ steps.determine_version.outputs.semVer }}'" -o octoterrawiza_windows_amd64.exe octoterrawiz.go
# env:
# GOOS: windows
# GOARCH: amd64
# CGO_ENABLED: 1
# - run: go build -ldflags="-X 'main.Version=${{ steps.determine_version.outputs.semVer }}'" -o octoterrawiz_macos_amd64 octoterrawiz.go
# env:
# GOOS: darwin
# GOARCH: amd64
# CGO_ENABLED: 1
# - run: go build -ldflags="-X 'main.Version=${{ steps.determine_version.outputs.semVer }}'" -o octoterrawiz_macos_arm64 octoterrawiz.go
# env:
# GOOS: darwin
# GOARCH: arm64
# CGO_ENABLED: 1
- name: Upload Release Assets
uses: softprops/action-gh-release@v1
continue-on-error: true
Expand Down
7 changes: 6 additions & 1 deletion internal/steps/modules/space_management/terraform.tf
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ resource "octopusdeploy_docker_container_registry" "feed_docker" {
package_acquisition_location_options = ["ExecutionTarget", "NotAcquired"]
}

data "octopusdeploy_library_variable_sets" "all_variable_sets" {
skip = 0
take = 10000
}

resource "octopusdeploy_project" "space_management_project" {
auto_create_release = false
Expand All @@ -221,7 +225,8 @@ resource "octopusdeploy_project" "space_management_project" {
name = "Octoterra Space Management"
project_group_id = octopusdeploy_project_group.octoterra.id
tenanted_deployment_participation = "Untenanted"
included_library_variable_sets = [length(data.octopusdeploy_library_variable_sets.octoterra.library_variable_sets) == 0 ? octopusdeploy_library_variable_set.octopus_library_variable_set[0].id : data.octopusdeploy_library_variable_sets.octoterra.library_variable_sets[0].id]
included_library_variable_sets = concat(data.octopusdeploy_library_variable_sets.all_variable_sets.library_variable_sets[*].id, [length(data.octopusdeploy_library_variable_sets.octoterra.library_variable_sets) == 0 ? octopusdeploy_library_variable_set.octopus_library_variable_set[0].id : data.octopusdeploy_library_variable_sets.octoterra.library_variable_sets[0].id])

versioning_strategy {
template = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.LastPatch}.#{Octopus.Version.NextRevision}"
}
Expand Down
2 changes: 1 addition & 1 deletion internal/steps/spread_variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (s SpreadVariablesStep) GetContainer(parent fyne.Window) *fyne.Container {
intro3.Wrapping = fyne.TextWrapWord
intro4 := widget.NewLabel(strutil.TrimMultilineWhitespace(`Modifying variables in this way means steps can continue to refer to the original sensitive variable name, so no changes are required to the deployment process. However, removing the scopes from the sensitive variables does have security implications. In particular, all sensitive variables are exposed to all deployments and runbook runs.`))
intro4.Wrapping = fyne.TextWrapWord
s.confirmChanges = widget.NewCheck("I understand the security risks associated with spreading sensitive variables", func(value bool) {
s.confirmChanges = widget.NewCheck("I understand and accept the security risks associated with spreading sensitive variables", func(value bool) {
if value {
s.spreadVariables.Enable()
} else {
Expand Down

0 comments on commit 0302117

Please sign in to comment.