Skip to content

Releases: Ahoo-Wang/CoSec

v1.9.2

07 Jan 14:43
Compare
Choose a tag to compare

What's Changed

  • Update dependency io.opentelemetry:opentelemetry-bom to v1.22.0 by @renovate in #58
  • Refactor: Enhance Statement.verify performance by @Ahoo-Wang in #60
  • Refactor: Support BoolConditionMatcher by @Ahoo-Wang in #61
    {
      "name": "AllowDeveloperOrIpRange",
      "effect": "allow",
      "actions": [
        {
          "type": "all"
        }
      ],
      "conditions": [
        {
          "type": "bool",
          "bool": {
            "and": [
              {
                "type": "authenticated"
              }
            ],
            "or": [
              {
                "type": "in",
                "part": "context.principal.id",
                "in": [
                  "developerId"
                ]
              },
              {
                "type": "path",
                "part": "request.remoteIp",
                "path": {
                  "caseSensitive": false,
                  "separator": ".",
                  "decodeAndParseSegments": false
                },
                "pattern": "192.168.0.*"
              }
            ]
          }
        }
      ]
    }

Full Changelog: v1.9.0...v1.9.2

v1.9.0

06 Jan 09:26
Compare
Choose a tag to compare

What's Changed

  • Feature: add RequestAttributesAppender api by @Ahoo-Wang in #57
  • Feature: support request.attributes.
  • Feature: support request.attributes.ipRegion
  • Feature: add Ip2RegionRequestAttributesAppender
    {
      "name": "RegionWhitelist",
      "effect": "deny",
      "actions": [
        {
          "type": "all"
        }
      ],
      "conditions": [
        {
          "negate": true,
          "type": "reg",
          "part": "request.attributes.ipRegion",
          "pattern": "^中国\\|0\\|(上海|广东省)\\|.*"
        }
      ]
    }

Full Changelog: v1.8.9...v1.9.0

v1.8.9

06 Jan 04:19
68b407d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.8...v1.8.9

v1.8.8

05 Jan 16:06
bece707
Compare
Choose a tag to compare

What's Changed

  • Refactor: rename PermissionRepository to PolicyRepository by @Ahoo-Wang in #54
  • Refactor: Enhance SimpleAuthorization Log by @Ahoo-Wang in #55

Full Changelog: v1.8.7...v1.8.8

v1.8.7

05 Jan 06:06
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.6...v1.8.7

v1.8.6

05 Jan 03:39
e9afd1d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.5...v1.8.6

v1.8.5

04 Jan 03:36
26e78b2
Compare
Choose a tag to compare

What's Changed

  • Feature: support request.header. for PathConditionMatcher by @Ahoo-Wang in #49
  • Breaking: remove TenantId from Request
  • Breaking: CoSecPrincipal.id as Principal.getName()
  • Feature: support negate for ConditionMatcher by @Ahoo-Wang in #50
  • Feature: support context.principal.attributes. for DefaultPartExtractor by @Ahoo-Wang in #51

Full Changelog: v1.8.2...v1.8.5

v1.8.2

02 Jan 09:48
a6270e1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.8.0...v1.8.2

v1.8.0

02 Jan 08:00
Compare
Choose a tag to compare

What's Changed

  • Feature: add PartExtractor api by @Ahoo-Wang in #45
  • Feature: add PartConditionMatcher api
  • Feature: enhance Request.method api
  • Feature: enhance ActionMatcher api
  • Feature: enhance InConditionMatcher
  • Feature: support Request.method
  • Feature: support EqConditionMatcher by @Ahoo-Wang in #46
  • Improve code coverage by @Ahoo-Wang in #47

Full Changelog: v1.7.0...v1.8.0

v1.7.0

02 Jan 04:17
3ae5bff
Compare
Choose a tag to compare

What's Changed

  • Feature: add Configuration api by @Ahoo-Wang in #44
  • Feature: enhance RequestMatcher api
  • Feature: enhance ActionMatcherFactory SPI
  • Feature: enhance ConditionMatcherFactory SPI

Full Changelog: v1.6.9...v1.7.0