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

Pass secrets through in F# analysis #4128

Merged

Conversation

StachuDotNet
Copy link
Member

An empty list [] of Secrets is currently being passed through for F# analysis. This fixes that.

Comment on lines +676 to +677
let ocamlSecret2RT (secret : secret) : RT.Secret.T =
{ name = secret.secret_name; value = secret.secret_value }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was slightly surprised to see a RT value here rather than a PT value, but that's what's expected by analysis.

@StachuDotNet
Copy link
Member Author

will fix #4127

@StachuDotNet
Copy link
Member Author

StachuDotNet commented Jun 11, 2022

This returns Secrets in plain text to the user - is that OK, or ...

Edit: I was wrong, it doesn't. And I've confirmed consistent results in how we hide the values of the passwords, across Wasm.fs and js_of_ocaml. (using use-ocaml-analysis). LGTM

@StachuDotNet
Copy link
Member Author

My confidence here is high, and it's a regression from the old analysis, so merging this.

@StachuDotNet StachuDotNet merged commit 1b76e3f into darklang:main Jun 11, 2022
@StachuDotNet
Copy link
Member Author

StachuDotNet commented Jun 11, 2022

Follow-up: #4129

@StachuDotNet StachuDotNet deleted the respect-secrets-in-fsharp-analysis branch August 24, 2022 11:54
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