Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create element metadata security #8559

Merged
merged 2 commits into from
Jan 3, 2025
Merged

Conversation

mandy-chessell
Copy link
Contributor

Description

This PR updates the generic handlers and metadata security module to create a data-oriented security authorization capability centered around all metadata element. It replaces the three specialist interfaces for Asset, Glossary and Connection.

At this time the new framework is in place but not activated in the default servers.

Testing

The updates of the generic handlers to call the new framework also includes some performance enhancements. The testing has focus on regresion testing to ensure nothing has broken rather than exercising the new function

Release Notes & Documentation

The new framework needs to be added to https://egeria-project.org/features/metadata-security/overview/

Additional notes

mandy-chessell and others added 2 commits January 3, 2025 15:48
Signed-off-by: Mandy Chessell <mandy.e.chessell@gmail.com>
@mandy-chessell mandy-chessell merged commit fd1f3a1 into odpi:main Jan 3, 2025
4 checks passed
effectiveTime,
methodName);
genericHandler.validateEntityAndAnchorForRead(serverUserId,
entityProxy.getGUID(),

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
entityProxy
may be null at this access as suggested by
this
null guard.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
Variable
entityProxy
may be null at this access because of
this
null argument.
@@ -61,7 +61,8 @@
*
* @return subclass of InstancePropertyValue
*/
public InstancePropertyValue cloneFromSubclass() {
public InstancePropertyValue cloneFromSubclass()

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
InstancePropertyValue.cloneFromSubclass
; it is advisable to add an Override annotation.
* @param instance instance details
* @return flag indicating whether the reference copy should be saved
*/
public boolean validateEntityReferenceCopySave(EntityDetail instance)
public boolean validateEntityReferenceCopySave(String userId, EntityDetail instance)

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
OpenMetadataRepositorySecurity.validateEntityReferenceCopySave
; it is advisable to add an Override annotation.
* @param instance instance details
* @return flag indicating whether the reference copy should be saved
*/
public boolean validateRelationshipReferenceCopySave(Relationship instance)
public boolean validateRelationshipReferenceCopySave(String userId, Relationship instance)

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
OpenMetadataRepositorySecurity.validateRelationshipReferenceCopySave
; it is advisable to add an Override annotation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant