-
Notifications
You must be signed in to change notification settings - Fork 170
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
update policy list #1374
update policy list #1374
Conversation
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.
Looks good 👍
"upstream": [ | ||
{ | ||
"name": "Upstream", | ||
"summary": "Allows to modify the upstream URL of the request based on its path.", |
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.
"summary": "Allows to modify the upstream URL of the request based on its path.", | |
"summary": "This policy allows you to modify the upstream URL of the request based on its path.", |
"name": "Upstream", | ||
"summary": "Allows to modify the upstream URL of the request based on its path.", | ||
"description": [ | ||
"This policy allows to modify the upstream URL (scheme, host and port) of the request based on its path. ", |
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.
"This policy allows to modify the upstream URL (scheme, host and port) of the request based on its path. ", | |
"This policy allows you to modify the upstream URL (scheme, host, and port) of the request based on its path. ", |
"properties": { | ||
"url": { | ||
"type": "string", | ||
"description": "New URL in case of match" |
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.
"description": "New URL in case of match" | |
"description": "The new URL in case of a match." |
}, | ||
"regex": { | ||
"type": "string", | ||
"description": "Regular expression to be matched" |
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.
"description": "Regular expression to be matched" | |
"description": "The regular expression to be matched." |
], | ||
"type": "object" | ||
}, | ||
"description": "List of rules to be applied", |
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.
"description": "List of rules to be applied", | |
"description": "The list of rules to be applied.", |
], | ||
"type": "string" | ||
}, | ||
"description": "Array of HTTP methods this rule must be applied to. If left blank it will be applied to all HTTP methods", |
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.
"description": "Array of HTTP methods this rule must be applied to. If left blank it will be applied to all HTTP methods", | |
"description": "An array of HTTP methods this rule must be applied to. If left blank it will be applied to all HTTP methods.", |
"type": "string" | ||
}, | ||
"template": { | ||
"description": "Template in which the matched args are replaced", |
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.
"description": "Template in which the matched args are replaced", | |
"description": "Template in which the matched arguments are replaced.", |
], | ||
"upstream_mtls": [ | ||
{ | ||
"summary": "Certificates to be used with the upstream API", |
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.
"summary": "Certificates to be used with the upstream API", | |
"summary": "Certificates to be used with the upstream API.", |
"upstream_mtls": [ | ||
{ | ||
"summary": "Certificates to be used with the upstream API", | ||
"description": "With this policy a new TLS connection with the upstream API will be used with the certificates set in the config", |
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.
"description": "With this policy a new TLS connection with the upstream API will be used with the certificates set in the config", | |
"description": "This policy uses a new TLS connection with the upstream API and the certificates set in the configurations.", |
"type": "string" | ||
} | ||
}, | ||
"description": "Built-in Upstream MTLS APIcast policy", |
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.
"description": "Built-in Upstream MTLS APIcast policy", | |
"description": "Built-in Upstream MTLS APIcast policy.", |
"custom_metrics": [ | ||
{ | ||
"name": "Custom Metrics", | ||
"summary": "Custom metrics on Nginx post actions ", |
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.
"summary": "Custom metrics on Nginx post actions ", | |
"summary": "Custom metrics on Nginx post actions.", |
"name": "Custom Metrics", | ||
"summary": "Custom metrics on Nginx post actions ", | ||
"description": [ | ||
"With this policy, on post_actions the Authrep call will report any new ", |
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.
"With this policy, on post_actions the Authrep call will report any new ", | |
"With this policy, on post_actions the AuthRep call will report any new ", |
"!=", | ||
"matches" | ||
], | ||
"description": "Operation to apply. The matches op supports PCRE (Perl compatible regular expressions)", |
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.
"description": "Operation to apply. The matches op supports PCRE (Perl compatible regular expressions)", | |
"description": "Operation to apply. The matches operation supports PCRE (Perl compatible regular expressions).", |
"custom_metrics_rule": { | ||
"properties": { | ||
"increment": { | ||
"description": "How many hits should be incremented, liquid value ", |
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.
I'm not sure what this description is trying to say. Is it: This metric determines how many hits should be incremented using the liquid value
?
@dfennessy Thanks for the review. Those files are auto-generated and thus, we cannot change them. I will take your suggestions and apply them to the source files in another PR. thanks! |
{ | ||
"summary": "Controls logging.", | ||
"description": [ | ||
"Controls logging. It allows to enable and disable access logs per ", |
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.
"Controls logging. It allows to enable and disable access logs per ", | |
"Controls logging allows you to enable and disable access logs per ", |
"summary": "Controls logging.", | ||
"description": [ | ||
"Controls logging. It allows to enable and disable access logs per ", | ||
"service. Also it allows to have a custom access logs format per service" |
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.
"service. Also it allows to have a custom access logs format per service" | |
"service. Also it allows to have a custom access logs format per service." |
"!=", | ||
"matches" | ||
], | ||
"description": "Match operation to compare match field with the provided value", |
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.
"description": "Match operation to compare match field with the provided value", | |
"description": "Match operation to compare match field with the provided value.", |
], | ||
"upstream_connection": [ | ||
{ | ||
"summary": "Allows to configure several options for the connections to the upstream", |
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.
"summary": "Allows to configure several options for the connections to the upstream", | |
"summary": "Allows you to configure several options for the connections to the upstream.", |
"upstream_connection": [ | ||
{ | ||
"summary": "Allows to configure several options for the connections to the upstream", | ||
"description": "Allows to configure several options for the connections to the upstream", |
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.
"description": "Allows to configure several options for the connections to the upstream", | |
"description": "Allows you to configure several options for the connections to the upstream.", |
"properties": { | ||
"send_timeout": { | ||
"exclusiveMinimum": 0, | ||
"description": "Timeout between two successive write operations (in seconds).", |
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.
"description": "Timeout between two successive write operations (in seconds).", | |
"description": "This is the timeout in seconds between two successive write operations.", |
}, | ||
"connect_timeout": { | ||
"type": "integer", | ||
"description": "Timeout for establishing a connection (in seconds)." |
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.
"description": "Timeout for establishing a connection (in seconds)." | |
"description": "This is the timeout in seconds for establishing a connection." |
}, | ||
"read_timeout": { | ||
"exclusiveMinimum": 0, | ||
"description": "Timeout between two successive read operations (in seconds).", |
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.
"description": "Timeout between two successive read operations (in seconds).", | |
"description": "The timeout in seconds between two successive read operations.", |
], | ||
"tls": [ | ||
{ | ||
"summary": "Configure TLS termination certificates", |
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.
"summary": "Configure TLS termination certificates", | |
"summary": "Configure TLS termination certificates.", |
Some suggestions added. This is one I'll have to come back to due to the sheer size of the files, however I hope the suggestions I've made are on the right track. The suggestions are around readability and punctuation. |
AH! I've just seen this now. Will I await the other PR and continue the suggestions there? |
wait for another PR, thanks |
how to generate policy file
Run apicast
Fetch policies