{"id":18302281,"url":"https://github.com/outscale/osc-ricochet-2","last_synced_at":"2025-04-09T10:10:43.670Z","repository":{"id":223893158,"uuid":"761820272","full_name":"outscale/osc-ricochet-2","owner":"outscale","description":"A incomplete local Outscale cloud stack. Develop and test your cloud apps offline","archived":false,"fork":false,"pushed_at":"2024-11-05T16:49:10.000Z","size":223,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-15T04:24:03.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outscale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-22T14:53:14.000Z","updated_at":"2024-11-05T16:41:46.000Z","dependencies_parsed_at":"2024-05-02T16:55:38.472Z","dependency_job_id":"4356dff2-b497-420a-ae8a-07f234c6d5d2","html_url":"https://github.com/outscale/osc-ricochet-2","commit_stats":null,"previous_names":["outscale/osc-ricochet-2"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fosc-ricochet-2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fosc-ricochet-2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fosc-ricochet-2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fosc-ricochet-2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outscale","download_url":"https://codeload.github.com/outscale/osc-ricochet-2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T15:18:50.343Z","updated_at":"2025-04-09T10:10:43.626Z","avatar_url":"https://github.com/outscale.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Project Sandbox](https://docs.outscale.com/fr/userguide/_images/Project-Sandbox-yellow.svg)](https://docs.outscale.com/en/userguide/Open-Source-Projects.html)\n# osc-ricochet-2\n\nnot a vaporware, but a cloudy stuff, about sending back request from where it come from.\n\nusing this project, while expecting the same result as outscale API, might have unforeseen consequences.\nbut you're a free man, so you can try.\n\n\n# configuration\n\nif you want Ricochet to Rise and Shine, you need to have the right conf in the right place.\n\n1rst argumnent of ricochet is the configuration path.\n\nExample:\n```json\n{\n     // either exist, full, mix or none, none ignore all auth, exist, check if the user exist but don't go futher,\n     // and full do the full auth, full is buggy. mix check password, but not the V4 signature.\n    \"auth_type\": \"headarches\",\n    \"tls\": false, // start the server as an http/https server\n    \"in_convertion\": true, // support for FCU/ICU and other non outscale API (just support a very few call so far)\n    \"password_as_ak\": true, // password auth, is now consider as strong as ak/sk\n    \"users\": [ // Can have multiple users\n\t{\n\t    \"access_key\": \"11112211111110000000\",\n\t    \"secret_key\": \"0000001111112222223333334444445555555666\",\n\t    \"login\": \"joe\",\n\t    \"pass\": \"ashita wa dochida\"\n\t},\n\t{\n\t    \"access_key\": \"11112211111110000333\",\n\t    \"secret_key\": \"1000001111112222223333334444445555555666\",\n\t    \"login\": \"titi\",\n\t    \"pass\": \"toto\"\n\t}\n    ]\n}\n```\n\n# build\n\n```\ncargo build\n```\n\n# usage\n\n```\ncargo run [-- CONFIG.json]\n```\n\nfor config see [this](./ricochet-headarches.json) and [that](./ricochet.json) as example\n\n# Logs Management\n\n## Set Logs in config\n\n```json\n{\n\t\"log\": {\n\t\t\"scope\": [\"nets\", \"vms\"],\n\t\t\"dir\": \"all\"\n\t}\n}\n```\n\n## Set Logs at runtime\n\n`\"scope\"` is an array of what resources you want to log, like `[\"nets\", \"vms\"]`\n`\"dir\"` is used to set if you want to see input or output arguments, either `\"in\", \"out\" or \"all\"`\n\n\nExample:\n\n```bash\ncurl 127.0.0.1:3000/SetLog_ -d '{\"log\": {\"scope\": [\"nets\"], \"dir\": \"in\"}}'\n```\n\n# ASCII Art\n```\n[oapi-cli]\n    |\n    V\n(createVms)    -\u003e    [ricochet-2]\n                           |\n                           V\n                     (create a VM)\n                           |\n                           V\n[oapi-cli]    \u003c----   (Send return)\n    |\n    V\n(Print Result)\n------- Some time later with a different client ----\n [curl]\n    |\n    V\n(ReadVms)      -\u003e    [ricochet-2]\n                         |\n                         V\n [curl]     \u003c- (Send earlier created VM)\n    |\n    V\n(print result)\n```\n\n# contribution\n\nYou can open a PR, or an issue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fosc-ricochet-2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutscale%2Fosc-ricochet-2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fosc-ricochet-2/lists"}