pelican-eggs / eggs

Service eggs for the pterodactyl panel
MIT License
2.85k stars 2.32k forks source link

[Egg Request]: Hashicorp's Vault #1835

Closed misterquestions closed 1 year ago

misterquestions commented 2 years ago

Does this expand an already existing service

No

Link to a game or software

https://www.vaultproject.io/

Links for the download

https://www.vaultproject.io/downloads

Links for the install docs

https://learn.hashicorp.com/tutorials/vault/getting-started-install?in=vault/getting-started

parkervcp commented 2 years ago

While it's technically possible you will only really run in file mode. Not saying you can't run it in pterodactyl either.

I might look at this but it's probably not the "best" way to run it.

QuintenQVD0 commented 2 years ago

Does this expand an already existing service

No

Link to a game or software

https://www.vaultproject.io/

Links for the download

https://www.vaultproject.io/downloads

Links for the install docs

https://learn.hashicorp.com/tutorials/vault/getting-started-install?in=vault/getting-started

I made the basics but it is not production ready and I personaly find thatt this is not made for ptero

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
    "meta": {
        "version": "PTDL_v2",
        "update_url": null
    },
    "exported_at": "2022-08-29T15:38:33+02:00",
    "name": "Vault",
    "author": "josdekurk@gmail.com",
    "description": "Manage Secrets & Protect Sensitive Data\r\n\r\nSecure, store and tightly control access to tokens, passwords, certificates, encryption keys for protecting secrets and other sensitive data using a UI, CLI, or HTTP API.",
    "features": null,
    "docker_images": {
        "ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian"
    },
    "file_denylist": [],
    "startup": ".\/vault {{ACTION}}",
    "config": {
        "files": "{}",
        "startup": "{\r\n    \"done\": \")! For help, type \"\r\n}",
        "logs": "{}",
        "stop": "^C"
    },
    "scripts": {
        "installation": {
            "script": "#!\/bin\/bash\r\n\r\napt update\r\napt -y install curl wget git zip unzip tar\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\n\r\nwget https:\/\/releases.hashicorp.com\/vault\/${VERSION}\/vault_${VERSION}_linux_${ARCH}.zip -O vault.zip\r\n\r\nunzip -o vault.zip\r\n\r\nrm vault.zip\r\n\r\nchmod +x vault\r\n\r\necho \"done\"",
            "container": "debian:bullseye-slim",
            "entrypoint": "bash"
        }
    },
    "variables": [
        {
            "name": "Version",
            "description": "The version of Vault you want",
            "env_variable": "VERSION",
            "default_value": "1.11.2",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:10",
            "field_type": "text"
        },
        {
            "name": "Action",
            "description": "Action",
            "env_variable": "ACTION",
            "default_value": "version",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string|max:150",
            "field_type": "text"
        }
    ]
}
QuintenQVD0 commented 1 year ago

This won't met merged, pterodactyl is not made for this.

parkervcp commented 1 year ago

@QuintenQVD0 I don't see why I wouldn't merge an egg for this. In theory it would be a pain but could work.