-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to override the x-functions-key in the backend resources #429
Comments
|
I wonder if it is because the initial value is a text and we are trying to override it with a named value? |
The current behavior combines array objects. If you have I think the better behavior for overrides should be a replacement. Creating a PR to address this, but this might be a breaking change for those who've relied on the default union behavior. |
@laksharun please get release 5.0.0 and let us know if this addresses your issue. |
@laksharun - one other thing; I don't know if you can override the x-functions-key property with a named value. If that doesn't work, try this instead: backends:
- name: test
properties:
credentials:
header:
x-functions-key:
- "{#STAGESITE_KEY#}"
|
@guythetechie @waelkdouh Thanks for the fix! It works now. I am able to override the x-functions-key property with a named value. |
Release version
v4.11.0
Describe the bug
I am not sure what I am missing but we are unable to override the
x-functions-key
value in the backend resource. After extracting the APIM data, we can the initialx-functions-key
value in thebackendInformation.json
file of the backend resource as shown below.Then we override the value for the
x-functions-key
in theconfiguration.stg.yaml
file like below.stagesite-key
is added as a named value in theconfiguration.stg.yaml
file like below.Expected behavior
The initial value for the
x-functions-key
, that istest
must be replaced with the named value{{stagesite-key}}
in the backend resource.Actual behavior
The new value is added along with the old value instead of replacing it.
Reproduction Steps
x-functions-key
header in the Authorization credentials section of the backend configuration in APIM.x-functions-key
header in theconfiguration.[env].yaml
and run the publisher workflow.The text was updated successfully, but these errors were encountered: