Azure / Azure/azure-devops-cli-extension

[Feature Request] service-endpoint create support to read from stdin

Open
#816 1 comment 2 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

Creating a service connection to an arbitrary service (such as Docker Hub) with:

```
az devops service-endpoint create --service-endpoint-configuration foo.json
```

requires the use of `--service-endpoint-configuration` to read from a JSON-encoded file containing the POST request to be sent. But in a CI environment this will typically require first creating a (hopefully temporary) file with cleartext credentials which is not desirable. On UNIX system you can work around this with:

```
sed -e 's/MY_PASSWORD_TOKEN/MY_ACTUAL_PASSWORD/' foo.json | az devops service end-point create --service-endpoint-configuration /dev/stdin
```

but I'm not sure how you would do this on Windows? It would be useful if there was an alternate parameter named something like `--service-endpoint-configuration-from-stdin` that would explicitly support reading the required JSON snippet from stdin in a cross platform way.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.