Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18010

Deployment environment variables broken when encrypted / masked

    XMLWordPrintable

Details

    Description

      How to reproduce:

      • Base64 encode this string: the-quick-brown-fox-jumps-over-the-lazy-dog
        Result: dGhlLXF1aWNrLWJyb3duLWZveC1qdW1wcy1vdmVyLXRoZS1sYXp5LWRvZwo=
      • Create new deployment environment variable under "Pipelines / Deployments" - call it TEST. Click the lock icon to encrypt / mask it.
      • Create a bitbucket-pipelines.yml file, and in it run the following command:
        echo "$(echo $TEST | base64 --decode)"
      • Run the pipeline. Check the pipelines view in bitbucket, and expect to see the original string in the console:
        the-quick-brown-fox-jumps-over-the-lazy-dog
      • Instead, we see this string:
      Unable to find source-code formatter for language: ܏�[lӂ,&�j��). Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Ch僟0�{�Q��hMv��
      �T�jDw����SO3�Br�\�^��R����```
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            a4bafdf2acb9 Albert de Jongh
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: