Skip to content

Block secure outputs in local deploy - #17235

Merged
Anthony Martin (anthony-c-martin) merged 2 commits into
mainfrom
ant/local-secure-error
May 28, 2025
Merged

Anthony Martin (anthony-c-martin) merged 2 commits into
mainfrom
ant/local-secure-error

Conversation

@anthony-c-martin

@anthony-c-martin Anthony Martin (anthony-c-martin) commented May 28, 2025 •

Copy link
Copy Markdown
Member

Description

Block secure outputs in local deploy

Discovered when trying to test https://github.com/anthony-c-martin/samples/tree/main/bicep/local-deploy-github-oidc.

This PR also makes trace logging for local-deploy more configurable.

Checklist

@github-actions

github-actions Bot commented May 28, 2025 •

Copy link
Copy Markdown
Contributor

Test this change out locally with the following install scripts (Action run 15302546421)

VSCode
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-vsix.sh) --run-id 15302546421
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-vsix.ps1) } -RunId 15302546421"
Azure CLI
  • Mac/Linux
    bash <(curl -Ls https://aka.ms/bicep/nightly-cli.sh) --run-id 15302546421
  • Windows
    iex "& { $(irm https://aka.ms/bicep/nightly-cli.ps1) } -RunId 15302546421"

@github-actions

github-actions Bot commented May 28, 2025 •

Copy link
Copy Markdown
Contributor

Dotnet Test Results

    78 files   -     39      78 suites   - 39   38m 3s ⏱️ - 20m 41s
12 160 tests  -     12  12 160 ✅  -     12  0 💤 ±0  0 ❌ ±0 
28 082 runs   - 14 033  28 082 ✅  - 14 033  0 💤 ±0  0 ❌ ±0 

Results for commit 35515f2. ± Comparison against base commit 3c8ba66.

This pull request removes 1884 and adds 642 tests. Note that renamed tests count towards both.

		nestedProp1: 1
		nestedProp2: 2
		prop1: true
		prop2: false
	1
	2
	\$'")
	prop1: true
	prop2: false
…
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�ӽ\u000e�0\u0010\u0007��>E�\u0003��\[4aw1q�\u0001*�\u0011#H\u0000\u0013\u0012�\u000b�q���ab�c�^��3�o�-�\u0004ˊ)�C����\u0006�=�\u00080D�7N�QJ\u0011B��'�q�j[���q�\u000f�!�u�a$\u000c�\u0000"��i�5��jk�PM�ia�s��	6�R��=\u001bj_��΀��M��o��\u0001\u0010��PZ@�$�ZA��Y2����P�cS`\c��숥��'{���l��8�t^\u0001�\u0007=\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
�Խ\u000e�0\u0010\u0007��>\u0005OP�+����+4J�G(\u0006J$1��e0q�� ����˥�6��tg�mi\u000fe�JE`R)�\u0006A�<�>@�\u0002�\u000b\u0008�J�\u0010I?�$#���&���^?�Lb��*\u000b�l�1#�9i\u0003�7����ar��Xt��ꛓ�vCC5հ�A�Q����+���\u0000\u0012��7�#g�B�1\u001b�H&�<����\u0013DQ\u0014Ekx\u0002\u000c���\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000
���\u000b�0\u0014\u0007��+������\���CFX\u0010t���\u000c�P\u0003��>=D\u0017��?��9�}ao\u001bo���jmtl�\u0000��%�o�&�h]o0�#�QD}\u0000@\u0008W�w��Q�:�[\u0019c�\u001f�\u0015�e����B	�<Ή\u0004��T��v9���\u0012$Yl*r-nY\u0013O��S\u001f���y�����S.\u0010\u0003�@2�\u0001GTB�ƣ�����	��r\u001b�N��.r\u0016�����ɲ,�\u001a�\u000b6�_\u001c\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003��K
�0\u0010\u0006�=EN�Τ��.�w�\u0015�\u0016|�T��\u0005��\u000b�E���\u0008��\u00042\u00033!�"��aW�cQ7"�\u001a\u0012��\u0006�&��\u001f!i��\u0005\u0018\u0018��1>,�Ʉ�im�WYc�\u000f����\\u00169\u001aʈ�\u001f"K\u0015mӍ/\u001d�J�o�=坻��w��Tn�/g�C�2����ߚ�)�\u0000��\u0002T\u001a	���Gi|�W�����\u0008�A\u0014EQ\u0014�\u0013\u0018	,\u0002\u0000\u000c\u0000\u0000,"The path: index.json was not found in artifact contents")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���
�@\u0010\u0007�=�\u0014�\u000f��謫��.A�\u001e`Ӊ�4Q\u0003!z��\u0010]�.~\u0004��30�\u000c��ޛfK&��\u0012��˵`c�-\u001f���\u0003�\u0019�7ɤV
\u0018�����W�)�U���܀�:�(\u0002�\u0001"�V"�\u0002�A�jk�P
B^��\u001c�yB��T��kφڗ��5�s��f|˿�����|@p5��B����L�y�\u001f�9��\u0014\u0014ה�(;R�l��\+z.��eY�5�\u0017�3C�\u0000\u000c\u0000\u0000,"Value cannot be null. (Parameter 'source')")
Bicep.Core.IntegrationTests.AzTypesViaRegistryTests ‑ Bicep_compiler_handles_corrupted_extension_package_gracefully (\u001f�\u0008\u0000\u0000\u0000\u0000\u0000\u0000\u0003���\u000b�0\u0014\u0007��+����[�a���CFX\u0010t���\u000c�P\u0003���y�.J\u0017��}�{_xo�7��t�2:1EI�LR���QKr�z�\u0000�\u0010�\u0017��\u0012\u0002\u0010�u���.�(c��A,��J3\u0013��\u0001�\u0000J�\u0000��LMl��U�\u0019���\u001c�ybjr)�y\u0013Ϻ�߾����~������q\u0004�����)D�h�x������xQ|Xl��q����\u001c�\u001f��39��8�{\u0002ge��\u0000\u000c\u0000\u0000,"'7' is an invalid end of a number. Expected a delimiter. Path: $.INVALID_JSON | LineNumber: 0 | BytePositionInLine: 20.")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("output loopOutput array = [for i in range(0, 2): {
  prop: map(containerWorkers, (w) => w.properties.ipAddress.ip)
}]")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("resource propertyLoop 'Microsoft.ContainerInstance/containerGroups@2022-09-01' = {
  name: 'gh9440-loop'
  location: 'westus'
  properties: {
    containers: [for i in range(0, 2): {
      name: 'gh9440-w1c-${i}'
      properties: {
        command: [
          'echo "${join(map(containerWorkers, (w) => w.properties.ipAddress.ip), ',')}"'
        ]
      }
    }]
  }
}")
Bicep.Core.IntegrationTests.DirectResourceCollectionTests ‑ DirectResourceCollectionAccess_NotAllowedWithinLoops ("var loopVar = [for i in range(0, 2): {
  prop: map(containerWorkers, (w) => w.properties.ipAddress.ip)
}]")
Bicep.Core.IntegrationTests.Emit.ParamsFileWriterTests ‑ Params_file_with_no_errors_should_compile_correctly ("
using 'main.bicep'

// involves all syntax
param myParam = {
  arr: [
    {
      a : 'b'
    }
    {
      c : true
    }
  ]
  name: 'complex object!'
  priority: 3
  val: null
  obj: {
      a: 'b'
      c: [
          'd'
           1
      ]
  }
}","
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "myParam": {
      "value": {
        "arr" : [
          {
            "a" : "b"
          },
          {
            "c" : true
          }
        ],
        "name" : "complex object!",
        "priority" : 3,
        "val" : null,
        "obj" : {
          "a" : "b",
          "c" : [
            "d",
            1
          ]
        }
      }
    }
  }
}","
param myParam object
")
…

♻️ This comment has been updated with latest results.

@anthony-c-martin
Anthony Martin (anthony-c-martin) force-pushed the ant/local-secure-error branch 2 times, most recently from cd1dfea to d40e8d0 Compare May 28, 2025 13:47
@anthony-c-martin
Anthony Martin (anthony-c-martin) deleted the ant/local-secure-error branch May 28, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants