diff --git a/RECIPES.md b/RECIPES.md index 183c2c5e..45007fc7 100644 --- a/RECIPES.md +++ b/RECIPES.md @@ -413,6 +413,7 @@ Additional recipes can be found on the [Main Recipes Repository](https://github. | [oneup/flysystem-bundle](https://packagist.org/packages/oneup/flysystem-bundle) | [4.0](oneup/flysystem-bundle/4.0) | | [oneup/uploader-bundle](https://packagist.org/packages/oneup/uploader-bundle) | [2.0](oneup/uploader-bundle/2.0) | | [onurb/doctrine-yuml-bundle](https://packagist.org/packages/onurb/doctrine-yuml-bundle) | [1.1](onurb/doctrine-yuml-bundle/1.1) | +| [opctim/symfony-csp-bundle](https://packagist.org/packages/opctim/symfony-csp-bundle) | [1.1](opctim/symfony-csp-bundle/1.1) | | [openai-php/symfony](https://packagist.org/packages/openai-php/symfony) | [0.3](openai-php/symfony/0.3) | | [orbitale/cms-bundle](https://packagist.org/packages/orbitale/cms-bundle) | [3.0](orbitale/cms-bundle/3.0) | | [orbitale/easyimpress-bundle](https://packagist.org/packages/orbitale/easyimpress-bundle) | [1.0](orbitale/easyimpress-bundle/1.0) | diff --git a/archived/opctim.symfony-csp-bundle/46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0.json b/archived/opctim.symfony-csp-bundle/46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0.json new file mode 100644 index 00000000..00caa905 --- /dev/null +++ b/archived/opctim.symfony-csp-bundle/46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0.json @@ -0,0 +1,62 @@ +{ + "manifests": { + "opctim/symfony-csp-bundle": { + "manifest": { + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "bundles": { + "Opctim\\CspBundle\\OpctimCspBundle": [ + "all" + ] + } + }, + "files": { + "config/packages/opctim_csp_bundle.yaml": { + "contents": [ + "opctim_csp_bundle:", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-always_add-option", + " always_add: []", + "", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-report-option", + " report:", + " url: null", + " route: null", + " route_params: []", + " chance: 100", + "", + " # https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#configuration", + " directives:", + " default-src:", + " - \"'self'\"", + " - 'data:'", + " - 'https:'", + " base-uri:", + " - \"'self'\"", + " object-src:", + " - \"'none'\"", + " script-src:", + " - \"'self'\"", + " img-src:", + " - \"'self'\"", + " style-src:", + " - \"'self'\"", + " - \"'unsafe-inline'\"", + "", + "# For different set-ups in the dev environment", + "when@dev:", + " opctim_csp_bundle:", + " # always_add: []", + "", + " directives:", + " # Add your directive overrides here", + "" + ], + "executable": false + } + }, + "ref": "46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0" + } + } +} diff --git a/index.json b/index.json index a18a5679..1b0677ef 100644 --- a/index.json +++ b/index.json @@ -1305,6 +1305,9 @@ "onurb/doctrine-yuml-bundle": [ "1.1" ], + "opctim/symfony-csp-bundle": [ + "1.1" + ], "openai-php/symfony": [ "0.3" ], diff --git a/opctim.symfony-csp-bundle.1.1.json b/opctim.symfony-csp-bundle.1.1.json new file mode 100644 index 00000000..00caa905 --- /dev/null +++ b/opctim.symfony-csp-bundle.1.1.json @@ -0,0 +1,62 @@ +{ + "manifests": { + "opctim/symfony-csp-bundle": { + "manifest": { + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + }, + "bundles": { + "Opctim\\CspBundle\\OpctimCspBundle": [ + "all" + ] + } + }, + "files": { + "config/packages/opctim_csp_bundle.yaml": { + "contents": [ + "opctim_csp_bundle:", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-always_add-option", + " always_add: []", + "", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#the-report-option", + " report:", + " url: null", + " route: null", + " route_params: []", + " chance: 100", + "", + " # https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP", + " # See https://github.com/opctim/symfony-csp-bundle?tab=readme-ov-file#configuration", + " directives:", + " default-src:", + " - \"'self'\"", + " - 'data:'", + " - 'https:'", + " base-uri:", + " - \"'self'\"", + " object-src:", + " - \"'none'\"", + " script-src:", + " - \"'self'\"", + " img-src:", + " - \"'self'\"", + " style-src:", + " - \"'self'\"", + " - \"'unsafe-inline'\"", + "", + "# For different set-ups in the dev environment", + "when@dev:", + " opctim_csp_bundle:", + " # always_add: []", + "", + " directives:", + " # Add your directive overrides here", + "" + ], + "executable": false + } + }, + "ref": "46a06fd8f88cb2b462fdd95215dbbd3b7aec61f0" + } + } +}