summaryrefslogtreecommitdiff
path: root/releasenotes/notes/secret-data-6196638e7904f909.yaml
blob: a3edb433eb1a3922552f8246236a65dc4a353132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
features:
  - |
    If sensitive data must be returned from a job in order to be
    provided to dependent jobs, the ``secret_data`` attribute of
    ``zuul_return`` attribute may now be used instead of the normal
    ``data`` attribute.  The data will be provided via the same
    mechanism as job secrets, where the data are not written to disk
    in the work directory.  Care must still be taken to avoid
    displaying or storing sensitive data within the job.  For example:
    
    .. code-block:: yaml
    
      tasks:
        - zuul_return:
            secret_data:
              password: foobar
            data:
              this_is: not secret