-
Notifications
You must be signed in to change notification settings - Fork 3
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
DisallowUserInstantiation
property on Application
to prevent manual instantiation of instances
#426
Conversation
70563a1
to
1179a30
Compare
This PR (currently) is just for exploring options, so no need to review specifics of the code just yet. Location, semantics, overlap with existing config etc is the stuff where I don't have enough context to know what's a good idea or not, updating the description |
As With this in mind, I vote to keep it as seperate config. |
1179a30
to
79a731e
Compare
InstantiationConfig
property on Application
to prevent manual instantiation of instances
Updated the PR commit and description with what we agreed yesterday |
@altinnadmin it would be nice if you could review this as well from a domain/naming POV 😄 |
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.
lgtm
|
This was our reasoning as well initally - we discussed this with @TheTechArch and ended up deciding against extending the XACML setup in this case. Should I setup a meeting to revisit? That seems like a good idea since others have raised the same question as well |
We discussesd this again - XACML based config for this is decided against for practical reasons - changes needed to accomodate this would affect different services such as - authorization, storage, backend/lib. There may also be more dimensions/config to this in future versions Updated proposal for applicationmetadata: /// <summary>
/// Gets or sets the list of allowed instantiators for this app, and limits it to orgs/service owners.
/// The "urn:altinn:org" claim of the current identity must match one of the values in this list.
/// If the list is null, any org/service owner or user can instantiate.
/// </summary>
[JsonProperty(PropertyName = "instantiationAllowedBy")]
public List<string> InstantiationAllowedBy { get; set; } |
Since XACML already does auth on which orgs can instantiate, I've made the configuration parameter a simple bool again |
Quality Gate passedIssues Measures |
InstantiationConfig
property on Application
to prevent manual instantiation of instancesDisallowUserInstantiation
property on Application
to prevent manual instantiation of instances
Description
We need configuration to block "manual instantiation" by users, for applications where service owner
create and prefill instances and then let users fill in the rest.
Changes
InstantiationConfig.ManualInstantiationDisabled
to disable manual instantiation (not by service owner)PartyTypesAllowed
Lib PR: Altinn/app-lib-dotnet#671
Related Issue(s)
Verification
Documentation