Releases: Ahoo-Wang/CoSec
Releases · Ahoo-Wang/CoSec
v1.9.2
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
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
What's Changed
- Refactor: Enhance
Statement.name
by @Ahoo-Wang in #56
Full Changelog: v1.8.8...v1.8.9
v1.8.8
What's Changed
- Refactor: rename
PermissionRepository
toPolicyRepository
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
What's Changed
- Refactor: (Context)ConditionMatcher by @Ahoo-Wang in #53
Full Changelog: v1.8.6...v1.8.7
v1.8.6
v1.8.5
What's Changed
- Feature: support
request.header.
forPathConditionMatcher
by @Ahoo-Wang in #49 - Breaking: remove
TenantId
fromRequest
- Breaking:
CoSecPrincipal.id
asPrincipal.getName()
- Feature: support
negate
forConditionMatcher
by @Ahoo-Wang in #50 - Feature: support
context.principal.attributes.
forDefaultPartExtractor
by @Ahoo-Wang in #51
Full Changelog: v1.8.2...v1.8.5
v1.8.2
What's Changed
- Feature: support
PathConditionMatcher
by @Ahoo-Wang in #48
Full Changelog: v1.8.0...v1.8.2
v1.8.0
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
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