ory / ory/cli

Identity related warnings when updating permission config

Open
#179 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
47
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Preflight checklist
Describe the bug
ory patch permission-config e834d575-2f37-4482-903d-d6e789e91c8a \                                                
  --add '/namespaces/-={"id": 0, "name": "resources"}' \
  --add '/namespaces/-={"id": 1, "name": "groups"}'
You are authenticated as: patrik@ory.sh
map[limit:map[] namespaces:[map[id:0 name:resources] map[id:1 name:groups]]]
Warnings were found.
- Configuration key `serve.*` can not be set and will be ignored.
- Configuration key `cookies.path` can not be set and will be ignored.
- Configuration key `cookies.domain` can not be set and will be ignored.
- Configuration key `session.cookie.domain` can not be set and will be ignored.
- Configuration key `session.cookie.name` can not be set and will be ignored.
- Configuration key `session.cookie.path` can not be set and will be ignored.
It is save to ignore these warnings unless your intention was to set these keys.

produces unrelated warnings.

Reproducing the bug

see above

Relevant log output

No response

Relevant configuration

No response

Version

v0.1.34

On which operating system are you observing this issue?

No response

In which environment are you deploying?

No response

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ory patch permission-config command from the issue with the shown --add arguments and inspect where its warnings are generated. Trace why unrelated serve.*, cookies.*, and session.cookie.* keys are reported during a permission-config update; done means the command no longer emits those warnings unless they are relevant.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.