https://www.ory.sh/ logo
#talk-oathkeeper
Title
# talk-oathkeeper
m

melodic-crayon-59962

04/24/2022, 3:05 PM
Hi all, I have noticed an issue with my configuration that was previously working. I configure the id_token mutator issuer_url based on the Extra.sub object
Copy code
id_token:
  enabled: true
  config:
    issuer_url: {{ print .Extra.sub }}
    jwks_url: file:///opt/keys/id-token.json
    ttl: 30s
However, since I have updated my oauthkeeper image to version v0.38.24-beta.1 I get the following error when I apply my configuration
Copy code
Error: failed to parse 03-oathkeeper-values.yaml: error converting YAML to JSON: yaml: invalid map key: map[interface {}]interface {}{"print .Extra.sub":interface {}(nil)}
any idea what I need to do to fix this? @User
m

magnificent-energy-493

04/25/2022, 11:59 AM
Which version where you using before v0.38.24-beta.1 ?
m

melodic-crayon-59962

04/25/2022, 3:30 PM
Unfortunately, I have not specified a version before, so I’m not 100% sure which version I was using.
m

magnificent-energy-493

04/25/2022, 5:06 PM
But it was working without problems before? Anyway these are AFAIK the only breaking. changes we had recently:https://github.com/ory/oathkeeper/blob/master/CHANGELOG.md#breaking-changes
m

melodic-crayon-59962

04/26/2022, 6:00 AM
Yes, I just checked my git repo, and I was using this configuration since March without any issues. In the beginning of April I redeployed oathkeeper with version v0.38.24-beta.1 and currently also v0.38.25-beta.1, using helm. Since then I get the mentioned error message. For me the question is what do I need to change in the issuer_url: {{ print .Extra.sub }} line to fix this? As the error suggests this is some kind of conversion issue between YAML and JSON.
m

magnificent-energy-493

04/26/2022, 9:28 AM
I am not sure either at the moment, maybe @User can see the issue right away.
5 Views