-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
Add a tool to generate the TLS configuration form Mozilla's ciphers recommendation #178
Conversation
rules/tls_config.go
Outdated
}, []ast.Node{(*ast.CompositeLit)(nil)} | ||
} | ||
|
||
// DO NOT EDIT - Generated by tlsconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported function NewOldTLSCheck should be of the form "NewOldTLSCheck ..."
rules/tls_config.go
Outdated
}, []ast.Node{(*ast.CompositeLit)(nil)} | ||
} | ||
|
||
// DO NOT EDIT - Generated by tlsconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported function NewIntermediateTLSCheck should be of the form "NewIntermediateTLSCheck ..."
rules/tls_config.go
Outdated
"github.com/GoASTScanner/gas" | ||
) | ||
|
||
// DO NOT EDIT - Generated by tlsconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported function NewModernTLSCheck should be of the form "NewModernTLSCheck ..."
Awesome work! |
* Add a tool to generate the TLS configuration form Mozilla's ciphers recommendation (#178) * Add a tool which generates the TLS rule configuration from Mozilla server side TLS configuration * Update README * Remove trailing space in README * Update dependencies * Fix the commends of the generated functions * Add nil pointer check to rule. (#181) TypeOf returns the type of expression e, or nil if not found. We are calling .String() on a value that may be nil in this clause. Relates to #174 * Add support for YAML output format (#177) * Add YAML output format * Update README * added rule to check for tainted file path * added #nosec to main/issue.go * updated test case import
This tool can generate the TLS configuration from Mozilla's ciphers recommendation and it can be invoked with
go generate
.The configuration of TLS rule was generated using the tool. I updated also the README file with some instructions how to do this.
Fix #15
cc @gcmurphy