{"id":28676454,"url":"https://github.com/code16/occulta","last_synced_at":"2025-06-13T23:04:45.711Z","repository":{"id":83262070,"uuid":"488661685","full_name":"code16/occulta","owner":"code16","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-13T07:35:50.000Z","size":53,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T08:38:52.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/code16.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2022-05-04T16:22:51.000Z","updated_at":"2025-06-13T07:35:54.000Z","dependencies_parsed_at":"2024-03-18T16:11:23.103Z","dependency_job_id":"ffa09f1c-359c-4940-ab18-6fbf0b0cfc14","html_url":"https://github.com/code16/occulta","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":"spatie/package-skeleton-laravel","purl":"pkg:github/code16/occulta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Focculta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Focculta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Focculta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Focculta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/code16","download_url":"https://codeload.github.com/code16/occulta/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/code16%2Focculta/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259732773,"owners_count":22903087,"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":"2025-06-13T23:04:45.023Z","updated_at":"2025-06-13T23:04:45.697Z","avatar_url":"https://github.com/code16.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Purpose\n\nSave a versioned and encrypted copy of .env on aws s3\n\n## Installation\n\nThis package requires Laravel 8.x or higher.\n\nYou can install the package via composer:\n\n```bash\ncomposer require code16/occulta\n```\n\nNext you should publish the config file :\n\n```bash\nphp artisan vendor:publish --provider=\"Code16\\Occulta\\OccultaServiceProvider\"\n```\n\nand setup your values (especially the kms `key_id` and `destination disk`) in your `config/occulta.php` file :\n\n```php\n\n    'key_id' =\u003e '0904c439-ff1f-4e9d-8a26-4e32ced6fe0x',\n\n    'destination_disk' =\u003e 's3_backup',\n];\n```\n\nThen, you should setup credentials to the proper aws user [allowed](https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-users) to \"use\" the given kms key, by adding a kms section in your `config/services.php` file :\n\n```php\n    'kms' =\u003e [\n        'key' =\u003e env('AWS_ACCESS_KEY_ID'),\n        'secret' =\u003e env('AWS_SECRET_ACCESS_KEY'),\n        'region' =\u003e 'eu-central-1',\n    ],\n```\n\nNom you should schedule tasks for backup and cleanup in `app/Console/Kernel.php` :\n\n```php\n    protected function schedule(Schedule $schedule)\n    {\n        $schedule-\u003ecommand('occulta:encrypt')-\u003edailyAt('01:00');\n        $schedule-\u003ecommand('occulta:clean')-\u003edailyAt('02:00');\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode16%2Focculta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcode16%2Focculta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcode16%2Focculta/lists"}