-
Notifications
You must be signed in to change notification settings - Fork 15
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
Populate the access.classification field #320
Conversation
Possible needed add-on: Synch with existing
|
Possibly:
|
access_ssdl={"access_level": "paranoid", "rep_include": False}, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would "paranoid" be in ALLOWED_ACCESS_CLASSIFICATION"....?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't currently validate anything for the access_ssdl input argument I think. Valid values according to the schema is internal
and asset
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This gets easily complicated. I think we need one more round on conceptual maturation, and e.g. see if we can re-use and extend the ssdl.access_level
(as machine read, and not necessarily as ssdl
context in reality) instead of introducing a new but rather similar classification
and deprecate ssld.access_level
?
The problem with continuing with Another issue with the current argument is that it is bundled with So the "proper" way is probably to:
The challenge is the transition period, when everything must be backwards compatible and preferably work simultaneously, while not having any inconsistencies. If this was a purely "under the hood" thing, I wouldn't mind, but this is both exposed in the data model (which must be documented and understood, also outside FMU context) and in the API to fmu.dataio. I will give it one more go to see if it is possible to achieve something sensible that allows for an introduction of more proper arguments, but yes, possibly it needs to mature. In that case, we must populate |
See attempt of light implementation in #324 @jcrivenaes |
This should also be closed given ongoing work on Pydantic etc, but discussion is relevant ref chat about the current logic around |
This PR partly solves #295.
Metadata shall contain the
access.classification
field, the values shall be eitherinternal
orrestricted
. If theaccess_classification
argument is given, it is used. First fallback is theglobal_variables
/config
. If not present in config, final fallback is default constant in fmu.dataio. This to ensure backwards compatibility, as this will hit several existing configs without this tag present combined with scripts without this argument given.