Dynamicaly set a field as readonly

Good day,

Is there a way to make a field editable during the post creation but then mark it as disabled/read-only for any future post edit? I need some fields to be set only one time and then never alter the value again.

Basically, I’m looking for a way to define read-only states dynamically.
I’ve been digging into the plugins/strapi-plugin-content-manager/admin/src/containers/EditView folder but it doen’t seem easy to alter the metadata.

Any idea?

Thank you