sticky-guitar-94474
03/11/2022, 10:05 PMunable to update access rules from given location, changes will be ignored. Check the configuration or restart the service if the issue persists. audience=application error=map[message:No Major.Minor.Patch elements found] file=access-rule-1.json service_name=ORY Oathkeeper service_version=v0.38.23-beta.1
<< Same goes with Pastebin url which is publicly accesible and base64 encoded rules string
Here is the values.yaml file I am using
oathkeeper:
config:
serve:
proxy:
port: 4455
api:
port: 4456
access_rules:
repositories:
- <file://access-rule-1.json>
- <https://pastebin.com/raw/zPu0JHqv>
matching_strategy: regexp
mutatorIdTokenJWKs: {}
My Sample Access Rule is as follows
[
{
"id": "asd2",
"version": "v0.1",
"upstream": {
"url": "<https://httpbin.org/get>",
"preserve_host": true
},
"match": {
"url": "<http://127.0.0.1:4455/get>",
"methods": ["GET", "POST"]
}
}
]
Kindly let me know if there’s any more information neededmagnificent-energy-493
sticky-guitar-94474
03/14/2022, 12:48 PMdamp-sunset-69236
03/14/2022, 3:41 PMsticky-guitar-94474
03/14/2022, 3:44 PMdamp-sunset-69236
03/14/2022, 3:47 PMaccess-rule-1.json
does not exist in your deployed container. As a solution you can try to store it in private s3 bucket and pass to the configuration using
repositories:
- <s3://bucket_name/access-rule.json>
- <s3://bucket_name/access-rule.json>
damp-sunset-69236
03/14/2022, 3:47 PMdamp-sunset-69236
03/14/2022, 3:48 PMsticky-guitar-94474
03/14/2022, 4:03 PMsticky-guitar-94474
03/14/2022, 4:06 PMunable to update access rules from given location, changes will be ignored
) compared to a file not found issue that I received prior to this issuesticky-guitar-94474
03/14/2022, 4:16 PMsticky-guitar-94474
03/14/2022, 7:26 PMdamp-sunset-69236
03/14/2022, 7:48 PMdamp-sunset-69236
03/14/2022, 7:48 PM[
{
"id": "asd2",
"upstream": {
"url": "<https://httpbin.org/get>",
"preserve_host": true
},
"match": {
"url": "<http://127.0.0.1:4455/get>",
"methods": ["GET", "POST"]
},
"authenticators": [
{
"handler": "anonymous"
}
],
"authorizer": {
"handler": "allow"
},
"mutators": [
{
"handler": "noop"
}
]
}
]
damp-sunset-69236
03/14/2022, 7:48 PMAuthenticators, authorizer and mutators
. These configuration options are mandatorysticky-guitar-94474
03/14/2022, 8:03 PM[
{
"id": "1",
"version": "v0.1",
"upstream": {
"url": "<https://httpbin.org/get>",
"preserve_host": true
},
"match": {
"url": "<http://127.0.0.1:4455/get>",
"methods": ["GET", "POST"]
},
"authenticators": [{ "handler": "noop" }],
"authorizer": { "handler": "allow" },
"mutators": [{ "handler": "noop" }],
"errors": [{ "handler": "json" }]
}
]
I’m using this @Usersticky-guitar-94474
03/14/2022, 8:04 PMsticky-guitar-94474
03/14/2022, 8:06 PMdamp-sunset-69236
03/15/2022, 6:24 AMversion
uses semver to support versioning. You need to have vx.y.z
format
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
sticky-guitar-94474
03/15/2022, 6:24 AMdamp-sunset-69236
03/15/2022, 6:24 AMv0.1.2
solved issuesticky-guitar-94474
03/15/2022, 6:24 AMdamp-sunset-69236
03/15/2022, 6:25 AMsticky-guitar-94474
03/15/2022, 6:25 AM[
{
"id": "1",
"version": "0.0.1",
"upstream": {
"url": "<https://httpbin.org>",
"preserve_host": true
},
"match": {
"url": "<http://127.0.0.1:4455/get>",
"methods": ["GET", "POST"]
},
"authenticators": [{ "handler": "noop" }],
"authorizer": { "handler": "allow" },
"mutators": [{ "handler": "noop" }],
"errors": [{ "handler": "json" }]
},
{
"id": "2",
"version": "0.0.1",
"upstream": {
"url": "<https://httpbin.org>",
"preserve_host": true
},
"match": {
"url": "<http://127.0.0.1:4455/stream/><.*>",
"methods": ["GET", "POST"]
},
"authenticators": [{ "handler": "oauth2_introspection"}],
"authorizer": { "handler": "allow" },
"mutators": [{ "handler": "noop" }],
"errors": [{ "handler": "json" }]
}
]
I’m using this now and it’s Working like a charmsticky-guitar-94474
03/15/2022, 6:27 AMversion
keysticky-guitar-94474
03/15/2022, 6:27 AMdamp-sunset-69236
03/15/2022, 6:57 AMsticky-guitar-94474
03/15/2022, 7:19 AMsticky-guitar-94474
03/15/2022, 12:47 PM