Azure / Azure/azure-functions-host

Function keys for the slot instance not visible in the portal

Open
#8,956 7 comments 0 reactions 1 assignee Assigned to @ramya894 View on GitHub
needs-investigation
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

As I was trying to access functions in my staging slot, in order to perform some tests before the slot swap, I noticed I was getting a 401.
I made sure my keys are all right, but still nothing 401. Then on the staging slot instance in the portal, I went to create a new function key however, although there was no error shown, a newly created key has not been listed.
I then used az cli to make the same operation with the following command

az functionapp keys set --key-type functionKeys --key-name smokeTestCI -g my-rg -n myFunction -s staging

and I finally got the key back that works.

At this point, I was curious where that key is shown as with az cli I was listing only the keys on the production slot.

After a while, I ended up reading the following document
https://github.com/Azure/azure-functions-host/wiki/Changes-to-Key-Management-in-Functions-V2

This led me to my blob and inside the azure-webjobs-secrets item I found my slot name and inside all of the keys I have created.

Seems this is expected behaviour since my secrets are stored in the blob container. The above document also states this and says:
"We are working on a solution to the issue - as of Feb 2019 the development work is well underway."

Does this mean this is a bug that after almost 4 years still has not been fixed?

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.