Azure / Azure/azure-functions-core-tools

Consider removing/masking account keys from logs when deploying Azure Functions for the first time

Open
#3,781 0 comments 0 reactions 0 assignees View on GitHub
enhancement potential-bug
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

### Version

Latest

### Description

Hello,

When deploying an Azure Function from local to the cloud, the internally-used Storage Account Key is showed multiple times on the screen in plaintext.

![screenshot](https://private-user-images.githubusercontent.com/42788729/347486835-1aef9e56-f079-491f-ae01-19272c9e05ef.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5NzE2NzIsIm5iZiI6MTcyMjk3MTM3MiwicGF0aCI6Ii80Mjc4ODcyOS8zNDc0ODY4MzUtMWFlZjllNTYtZjA3OS00OTFmLWFlMDEtMTkyNzJjOWUwNWVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA2VDE5MDkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg5NjU2ZmQyYmIwMDkzZDcyNWJiZDc3NDE4OGE0ZWQ5MjMxN2VjZTk5ZjJhM2MyNWZlOTliZTkyYzlmYmQ5ZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.smPYeUYUv-0dT16ZovrY7UQwRGbvSHOOs3D9BvQoV6o)

Please consider masking these secrets in the deployment logs and terminal output.

Originally reported [here](https://github.com/microsoft/Oryx/issues/2476)

Thank you

### Steps to reproduce

Deploy an Azure Function (Python runtime) in VS Code using `func init`, then `func new` then `func azure functionapp publish`.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `func init`, `func new`, and `func azure functionapp publish` for a Python Azure Function, then trace where deployment logs and terminal output are produced. Done means the storage account key and other secrets are masked in those outputs, with the first-deployment scenario covered by regression testing.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
cli, cloud, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.