Release 4.6.29 update#3144
Conversation
Preview of modified filesPreview of modified Markdown: |
| use Ibexa\Contracts\GraphQL\Schema\Domain\Content\Mapper\FieldDefinition\FieldDefinitionMapper; | ||
| use Ibexa\GraphQL\Schema\Domain\Content\Mapper\FieldDefinition\DecoratingFieldDefinitionMapper; | ||
|
|
||
| class MyCustomFieldDefinitionMapper extends DecoratingFieldDefinitionMapper implements FieldDefinitionMapper |
There was a problem hiding this comment.
Redundant, because MyFieldDefinitionMapper.php exists
|
|
||
| $isMultiple = $this->isMultiple($fieldDefinition) ? 'true' : 'false'; | ||
|
|
||
| return sprintf('@=resolver("DomainRelationFieldValue", [field, %s])', $isMultiple); |
There was a problem hiding this comment.
The actual change related to the release
| return $this->nameMyFieldInputType($contentType, $fieldDefinition); | ||
| } | ||
|
|
||
| private function nameMyFieldInputType(ContentType $contentType, FieldDefinition $fieldDefinition): string |
There was a problem hiding this comment.
This is a change about which I'm not 100% sure - I've based this on https://github.com/ibexa/fieldtype-matrix/blob/main/src/lib/GraphQL/Schema/MatrixFieldDefinitionMapper.php#L67-L74
and https://github.com/ibexa/fieldtype-matrix/blob/main/src/lib/GraphQL/Schema/NameHelper.php#L28-L37
|
|
||
| #### Implement other countermeasures | ||
|
|
||
| If updating the GraphQL packages isn't possible right now, for example because the project is using PHP 7.4 where the fix is not available, review the security issue carefully and asses the danger. |
There was a problem hiding this comment.
🍑
| If updating the GraphQL packages isn't possible right now, for example because the project is using PHP 7.4 where the fix is not available, review the security issue carefully and asses the danger. | |
| If updating the GraphQL packages isn't possible right now, for example because the project is using PHP 7.4 where the fix is not available, review the security issue carefully and assess the danger. | |
| [PHP 7.4 imposes an old version v0.14.x of `overblog/graphql-bundle`](https://github.com/overblog/GraphQLBundle/blob/v0.14.4/composer.json#L31) which [depends on old unfixed version v14.x of `webonyx/graphql-php`](https://github.com/overblog/GraphQLBundle/blob/v0.14.4/composer.json#L46). To have [the fix coming with `webonyx/graphql-php` v15.31.5](https://github.com/webonyx/graphql-php/security/advisories/GHSA-68jq-c3rv-pcrr), you must be at least on PHP 8.0 or above. |
| "config": { | ||
| "audit": { | ||
| "ignore": { | ||
| "GHSA-68jq-c3rv-pcrr": "Description of the countermeasures you've implemented." |
There was a problem hiding this comment.
I wouldn't be generic here, real reason instead of a placeholder that might not be filed:
| "GHSA-68jq-c3rv-pcrr": "Description of the countermeasures you've implemented." | |
| "GHSA-68jq-c3rv-pcrr": "Ignore DoS risk on old graphql-bundle and graphql-php" |
There was a problem hiding this comment.
I don't want to suggest that people should ignore this 😄
In (my) ideal world, the entry here would say something like:
"We ignore this CVE because even though we use an outdated package, the graphql endpoint is blocked by our firewall - name of the firewall rule - to make sure nobody has access to it."
There was a problem hiding this comment.
| "GHSA-68jq-c3rv-pcrr": "Description of the countermeasures you've implemented." | |
| "GHSA-68jq-c3rv-pcrr": "We shouldn't ignore this but…" |
There was a problem hiding this comment.
So, maybe we should give countermeasures examples like
- not using graphql and ensure it can't be accessed
- using graphql being a strategy ensuring it's only accessed by trusted third parties
- …
There was a problem hiding this comment.
Added some examples, maybe that helps
konradoboza
left a comment
There was a problem hiding this comment.
Looks good, thanks @mnocon!
adriendupuis
left a comment
There was a problem hiding this comment.
Nice!
Just a weird grammar and a vale suggestion.
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
code_samples/ change report
|
|
| "config": { | ||
| "audit": { | ||
| "ignore": { | ||
| "GHSA-68jq-c3rv-pcrr": "Description of the countermeasures you've implemented causing this one to be safe to ignore." |
There was a problem hiding this comment.
Good stuff! Very good advice in this section.
* Added doc for TaxonomyNoEntries & TaxonomySubtree (#3082) * Added doc for TaxonomyNoEntries * Added doc for Taxonomy subtree * Fixed CS * Apply suggestions from code review Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Apply suggestion from @mnocon * Rebuild --------- Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> * Product tour (#3065) * Product tour doc skeleton * Review feedback * Vale * Review feedback - part 2 * Added doc for the new config * Review feedback * Adjusted includes * Wording * Specified button name * Removed TODO * Help Center and Product tour enabled by default * Added images and interactive demo * Apply suggestions from code review Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Manual changes * [TMP] Fix build * Fixed build * Reworded --------- Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Added doc for additional parameter for ibexa_render (#3043) * Added doc for additional parameter for ibexa_render * Added update sections * Update docs/update_and_migration/from_5.0/update_from_5.0.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Reworked RN drafts * Update docs/release_notes/ibexa_dxp_v4.6.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Removed RN entries --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Release 4.6.29 fixes (#3139) * Highlight and wording fixes * Added mention of Product Tour to 4.6 * search_api.md: Minor fixes * Release 4.6.29 update (#3144) * Extracted GraphQL samples to separate files * Fixed GraphQL code samples * Updated GraphQl sample * DB update added * Added description * Added GrpahQL Security issue to ignore list * Added regenration mention * Selfreview * Ignore security warning conditionally * Simplified the examples * Wording * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --------- Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --------- Co-authored-by: julitafalcondusza <117284672+julitafalcondusza@users.noreply.github.com> Co-authored-by: Tomasz Dąbrowski <64841871+dabrt@users.noreply.github.com> Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>



There were many things broken about the GraphQL code samples - I've fixed some of them, but also deleted the code sample that was "stolen" from a public repo - it shouldn't be here in the first place, this way we avoid getting this file out of sync.
Doc for: