Hello, any ideas why I’m failing to patch my proje...
# ory-network
b
Hello, any ideas why I’m failing to patch my project? It’s a new project crated lately, it’s first time patching:
Copy code
ory patch project ab1d447f-c001-4a85-b290-8fea2685e03c \                                                                                                                127 ✘ 
--replace '/services/identity/config/cookies={"domain":"<http://lava-cybertron.xyz|lava-cybertron.xyz>","path":"/cookies","same_site":"Lax"}'

- 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.
Project json:
Copy code
{
  "id": "ab1d447f-c001-4a85-b290-8fea2685e03c",
  "name": "Lava-Staging",
  "revision_id": "26528a21-cbbe-4788-928b-432c48e8dbbd",
  "services": {
    "identity": {
      "config": {
        "cookies": {
          "domain": "<http://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com|dreamy-dubinsky-8snsds4ecu.projects.oryapis.com>",
          "path": "/",
          "same_site": "Lax"
        },
        "courier": {
          "smtp": {
            "from_name": "Lava-Staging via Ory"
          },
          "templates": {
            "recovery": {
              "invalid": {
                "email": {
                  "body": {}
                }
              },
              "valid": {
                "email": {
                  "body": {}
                }
              }
            },
            "verification": {
              "invalid": {
                "email": {
                  "body": {}
                }
              },
              "valid": {
                "email": {
                  "body": {}
                }
              }
            }
          }
        },
        "identity": {
          "default_schema_id": "7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588",
          "schemas": [
            {
              "id": "7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588",
              "url": "<https://storage.googleapis.com/bac-gcs-production/7bd77dec0e95f44adda6182771f06146b788d967b4ae1c070c2dd4f20a60885ab486a16a61912218c278b3b34f39301e5f0564aed981a137c474ca9445626588.json>"
            },
            {
              "id": "<preset://email>",
              "url": "<base64://ewogICIkaWQiOiAiaHR0cHM6Ly9zY2hlbWFzLm9yeS5zaC9wcmVzZXRzL2tyYXR>vcy9pZGVudGl0eS5lbWFpbC5zY2hlbWEuanNvbiIsCiAgIiRzY2hlbWEiOiAiaHR0cDovL2pzb24tc2NoZW1hLm9yZy9kcmFmdC0wNy9zY2hlbWEjIiwKICAidGl0bGUiOiAiUGVyc29uIiwKICAidHlwZSI6ICJvYmplY3QiLAogICJwcm9wZXJ0aWVzIjogewogICAgInRyYWl0cyI6IHsKICAgICAgInR5cGUiOiAib2JqZWN0IiwKICAgICAgInByb3BlcnRpZXMiOiB7CiAgICAgICAgImVtYWlsIjogewogICAgICAgICAgInR5cGUiOiAic3RyaW5nIiwKICAgICAgICAgICJmb3JtYXQiOiAiZW1haWwiLAogICAgICAgICAgInRpdGxlIjogIkUtTWFpbCIsCiAgICAgICAgICAib3J5LnNoL2tyYXRvcyI6IHsKICAgICAgICAgICAgImNyZWRlbnRpYWxzIjogewogICAgICAgICAgICAgICJwYXNzd29yZCI6IHsKICAgICAgICAgICAgICAgICJpZGVudGlmaWVyIjogdHJ1ZQogICAgICAgICAgICAgIH0sCiAgICAgICAgICAgICAgIndlYmF1dGhuIjogewogICAgICAgICAgICAgICAgImlkZW50aWZpZXIiOiB0cnVlCiAgICAgICAgICAgICAgfSwKICAgICAgICAgICAgICAidG90cCI6IHsKICAgICAgICAgICAgICAgICJhY2NvdW50X25hbWUiOiB0cnVlCiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9LAogICAgICAgICAgICAicmVjb3ZlcnkiOiB7CiAgICAgICAgICAgICAgInZpYSI6ICJlbWFpbCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgInZlcmlmaWNhdGlvbiI6IHsKICAgICAgICAgICAgICAidmlhIjogImVtYWlsIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgIm1heExlbmd0aCI6IDMyMAogICAgICAgIH0KICAgICAgfSwKICAgICAgInJlcXVpcmVkIjogWwogICAgICAgICJlbWFpbCIKICAgICAgXSwKICAgICAgImFkZGl0aW9uYWxQcm9wZXJ0aWVzIjogZmFsc2UKICAgIH0KICB9Cn0K"
            }
          ]
        },
        "selfservice": {
          "allowed_return_urls": [],
          "default_browser_return_url": "/ui/welcome",
          "flows": {
            "error": {
              "ui_url": "/ui/error"
            },
            "login": {
              "after": {
                "hooks": [],
                "oidc": {
                  "hooks": []
                },
                "password": {
                  "hooks": []
                },
                "webauthn": {
                  "hooks": []
                }
              },
              "before": {
                "hooks": []
              },
              "lifespan": "30m0s",
              "ui_url": "/ui/login"
            },
            "logout": {
              "after": {}
            },
            "recovery": {
              "after": {
                "hooks": []
              },
              "enabled": true,
              "lifespan": "30m0s",
              "ui_url": "/ui/recovery"
            },
            "registration": {
              "after": {
                "hooks": [],
                "oidc": {
                  "hooks": [
                    {
                      "hook": "session"
                    }
                  ]
                },
                "password": {
                  "hooks": [
                    {
                      "hook": "session"
                    }
                  ]
                },
                "webauthn": {
                  "hooks": []
                }
              },
              "before": {
                "hooks": []
              },
              "enabled": true,
              "lifespan": "30m0s",
              "ui_url": "/ui/registration"
            },
            "settings": {
              "after": {
                "hooks": [],
                "password": {
                  "hooks": []
                },
                "profile": {
                  "hooks": []
                }
              },
              "lifespan": "30m0s",
              "privileged_session_max_age": "15m0s",
              "required_aal": "highest_available",
              "ui_url": "/ui/settings"
            },
            "verification": {
              "after": {
                "hooks": []
              },
              "enabled": true,
              "lifespan": "30m0s",
              "ui_url": "/ui/verification"
            }
          },
          "methods": {
            "link": {
              "config": {
                "base_url": "",
                "lifespan": "15m0s"
              },
              "enabled": true
            },
            "lookup_secret": {
              "enabled": false
            },
            "oidc": {
              "config": {
                "providers": []
              },
              "enabled": false
            },
            "password": {
              "config": {
                "haveibeenpwned_enabled": true,
                "identifier_similarity_check_enabled": true,
                "ignore_network_errors": true,
                "max_breaches": 1,
                "min_password_length": 8
              },
              "enabled": true
            },
            "profile": {
              "enabled": true
            },
            "totp": {
              "config": {
                "issuer": "Lava-Staging"
              },
              "enabled": false
            },
            "webauthn": {
              "config": {
                "passwordless": false,
                "rp": {
                  "display_name": "Lava-Staging",
                  "id": "<http://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com|dreamy-dubinsky-8snsds4ecu.projects.oryapis.com>",
                  "origin": "<https://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com>"
                }
              },
              "enabled": false
            }
          }
        },
        "serve": {
          "admin": {
            "base_url": "<https://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com/>",
            "request_log": {
              "disable_for_health": true
            }
          },
          "public": {
            "base_url": "<https://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com/>",
            "cors": {
              "enabled": false
            },
            "request_log": {
              "disable_for_health": true
            }
          }
        },
        "session": {
          "cookie": {
            "domain": "<http://dreamy-dubinsky-8snsds4ecu.projects.oryapis.com|dreamy-dubinsky-8snsds4ecu.projects.oryapis.com>",
            "name": "ory_session_dreamydubinsky8snsds4ecu",
            "path": "/",
            "persistent": false,
            "same_site": "Lax"
          },
          "lifespan": "72h0m0s",
          "whoami": {
            "required_aal": "highest_available"
          }
        }
      }
    },
    "permission": {
      "config": {
        "limit": {},
        "namespaces": []
      }
    }
  },
  "slug": "dreamy-dubinsky-8snsds4ecu",
  "state": "running"
}
m
Hello Sean, I think you can only change the cookie domain through the console interface atm. under “Customize” -> “Custom Domain”. Will clarify if this is the case or if there is an issue with the CLI here.
s
The cookie domain is only available through the custom domain feature, as @magnificent-energy-493 pointed out. Sorry for the confusion here. I will improve the warning message there.
b
Hi @steep-lamp-91158 & @magnificent-energy-493, I work with Sean on that project. we have a custom domain but after login we don’t get the right domain on the cookie
i mean the configuration doesn’t take place
i searched and found this thread and understood it is a server side problem - fixed it by settings
dontUseTldForCookieDomain: false
we had it with true before. https://ory-community.slack.com/archives/C02MR4DEEGH/p1654045625497459