TykTechnologies / tyk

Tyk Open Source API Gateway written in Go, supporting REST, GraphQL, TCP and gRPC protocols
Other
9.75k stars 1.09k forks source link

Merging to release-5.6.0: [TT-13087] Adjust example gateway config, to have match preficing explicit by default (#6564) #6566

Closed buger closed 2 months ago

buger commented 2 months ago

User description

TT-13087 Adjust example gateway config, to have match preficing explicit by default (#6564)

User description

Description

TT-13087 Adjust example gateway config, to have match preficing explicit by default

Motivation and Context

Would be advised that Gateway users, would have by default explicit path matching settings enabled by default, as the wildcard behaviour of the path matching, can be challenging at times to configure properly.

How This Has Been Tested

Types of changes

Checklist


PR Type

enhancement, configuration changes


Description


Changes walkthrough ๐Ÿ“

Relevant files
Configuration changes
tyk.conf.example
Add explicit path matching options to example gateway config

tyk.conf.example
  • Added http_server_options section.
  • Enabled enable_strict_routes.
  • Enabled enable_path_prefix_matching.
  • Enabled enable_path_suffix_matching.
  • +5/-0     

    ๐Ÿ’ก PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information


    PR Type

    enhancement, configuration changes


    Description


    Changes walkthrough ๐Ÿ“

    Relevant files
    Configuration changes
    tyk.conf.example
    Add explicit path matching options to example gateway config

    tyk.conf.example
  • Added http_server_options section.
  • Enabled strict route matching.
  • Enabled path prefix and suffix matching.
  • +5/-0     

    ๐Ÿ’ก PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    github-actions[bot] commented 2 months ago

    API Changes

    no api changes detected
    github-actions[bot] commented 2 months ago

    PR Reviewer Guide ๐Ÿ”

    โฑ๏ธ Estimated effort to review: 2 ๐Ÿ”ต๐Ÿ”ตโšชโšชโšช
    ๐Ÿงช No relevant tests
    ๐Ÿ”’ No security concerns identified
    โšก Key issues to review

    Configuration Change
    The new configuration options `enable_strict_routes`, `enable_path_prefix_matching`, and `enable_path_suffix_matching` have been added. Ensure that these settings do not conflict with existing configurations and are well-documented to inform users of their effects.
    github-actions[bot] commented 2 months ago

    PR Code Suggestions โœจ

    No code suggestions found for the PR.

    sonarcloud[bot] commented 2 months ago

    Quality Gate Passed Quality Gate passed

    Issues
    0 New issues
    0 Accepted issues

    Measures
    0 Security Hotspots
    0.0% Coverage on New Code
    0.0% Duplication on New Code

    See analysis details on SonarCloud