Skip to content
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

*: switch to github.com/ghodss/yaml for more consistent YAML parsing #667

Merged
merged 4 commits into from
Nov 3, 2016

Conversation

ericchiang
Copy link
Contributor

ghodss/yaml converts from YAML to JSON before attempting to unmarshal.
This allows us to:

  • Get the correct behavor when decoding base64'd []byte slices.
  • Use *json.RawMessage.
  • Not have to support extravagant YAML features.
  • Let our structs use json: tags

cc @rithujohn191

Eric Chiang added 4 commits November 3, 2016 14:39
ghodss/yaml converts from YAML to JSON before attempting to unmarshal.
This allows us to:

* Get the correct behavor when decoding base64'd []byte slices.
* Use *json.RawMessage.
* Not have to support extravagant YAML features.
* Let our structs use `json:` tags
@ericchiang ericchiang merged commit 53852d4 into dexidp:dev Nov 3, 2016
ericchiang pushed a commit to ericchiang/dex that referenced this pull request Nov 4, 2016
Bcrypt'd hashes have "$" characters in them. This means that dexidp#667
(accepting actually bcrypted values) combined with dexidp#627 (expanding
config with environment variables) broke the example config.

For now, allow storages and connectors to expand their configs from
the environment, but don't do this anywhere else.
@ericchiang ericchiang deleted the dev-switch-yaml-package branch November 22, 2016 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant