gentle-gpu-60935
01/19/2025, 8:57 PMPUT /relation-tuples
I get 404 page not found
brief-egg-61061
01/19/2025, 8:57 PMbrief-egg-61061
01/19/2025, 8:57 PMyaml serve: read: host: 0.0.0.0 port: 4466 write: host: 0.0.0.0 port: 4467
4. If the issue persists, it might be related to how your Helm chart is configured or how the services are exposed in your Kubernetes cluster. 5. As a workaround, one user in the comments of the GitHub issue mentioned that they resolved a similar problem by using different versions for the Keto service and the initialization: yaml keto: image: oryd/keto:latest keto-init: image: oryd/keto:v0.9.0
However, please note that using mismatched versions is not recommended for production environments and might lead to other issues. If these suggestions don't resolve your issue, you may want to: 1. Double-check your Helm chart configuration. 2. Verify that the Keto service is running correctly in your cluster. 3. Check the logs of your Keto pods for any error messages. 4. Consider opening an issue on the [Ory Keto GitHub repository](https://github.com/ory/keto) with detailed information about your setup and the exact error you're encountering. [GitHub Issue: Self-hosting keto returns "404 Page Not Found"](https://github.com/ory/keto/issues/1510)gentle-gpu-60935
01/19/2025, 9:11 PM/admin/relation-tuples
.
But when try to put a new relationI get
{
"error": {
"code": 404,
"status": "Not Found",
"reason": "Unknown namespace with name \"default-namespace\".",
"message": "The requested resource could not be found"
}
}
Based on the error I assume that I need to create first a namespace but how? @chilly-king-10285brief-egg-61061
01/19/2025, 9:11 PMbrief-egg-61061
01/19/2025, 9:11 PMnamespaces.keto.ts
or something similar. Here's an example of how to define a simple namespace: typescript import { Namespace, Context } from "@ory/keto-namespace-types" class DefaultNamespace implements Namespace { // You can define relations and permissions here }
2. After defining your namespaces, you need to apply this configuration to your Ory Keto instance. The exact method depends on how you've deployed Keto, but typically you would include this file in your Keto configuration. 3. If you're using Ory Network (the cloud offering), you can do this through the Ory Console. Go to Permissions → Relationships in the [Ory Console](https://console.ory.sh/projects/current/permissions/relationships) and switch to the Permission Rules tab. Here, you can paste your namespace definitions. 4. For self-hosted Keto, you would typically include this file in your configuration and restart the Keto service to apply the changes. 5. After applying the namespace configuration, Keto should recognize the new namespace, and you should be able to create relationships within it. It's important to note that Keto doesn't have a specific API endpoint for creating namespaces. Instead, namespaces are defined in the configuration and are created when Keto starts up or reloads its configuration. If you're still having trouble, you might want to: 1. Double-check your namespace configuration to ensure it's correctly defined. 2. Verify that the configuration has been properly applied to your Keto instance. 3. Restart your Keto service after applying the configuration changes. 4. Check the Keto logs for any errors related to namespace loading. If you're using a Helm chart for deployment, you might need to update your values to include the namespace configuration. For more detailed information on namespaces in Ory Keto, you can refer to the [Ory Keto documentation on namespaces](https://www.ory.sh/docs/keto/concepts/namespaces). [Ory Keto Namespaces Documentation](https://www.ory.sh/docs/keto/concepts/namespaces)