[ 
https://issues.apache.org/jira/browse/ATLAS-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147988#comment-18147988
 ] 

ASF subversion and git services commented on ATLAS-5388:
--------------------------------------------------------

Commit ab73e99c326cdc5bb32b42e42a84cd8d6754f9dd in atlas's branch 
refs/heads/atlas-2.6 from UmeshPatil-1
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=ab73e99c32 ]

ATLAS-5207: Fix webapp test-compile on atlas-2.6 and restore ATLAS-5320 hook 
parallel API (#801)

* ATLAS-5207 (2.6 follow-up): fix webapp testCompile; restore ATLAS-5320 hook 
parallel API
- AtlasJwtAuthWrapperTest missing Knox filter import after server-common move.
- AtlasSecurityConfigTest ctor missing AtlasHeaderPreAuthFilter / 
AtlasJwtAuthWrapper.
- RestNotificationTest missing commons-configuration2 BaseConfiguration import.

Restore ATLAS-5320 parallel preprocessing surface (getPreprocessorHookConsumers,
9-arg ctor, HOOK_PREPROCESS) on NotificationHookConsumer without reverting full
ATLAS-5207 consumer merge. Align webapp tests with open source changes 5207.

Refs: ATLAS-5207

* ATLAS-5207 (2.6 follow-up): add SERVICE_NOTIFICATION_POST to AtlasPrivilege 
for rest-notification compile

ATLAS-5388 (c2f780e7a) renamed the enum to POST_NOTIFICATION for topic-scoped 
auth on 2.6.
ATLAS-5434 (39aeb1949) added verifyAccess(SERVICE_NOTIFICATION_POST) on
rest-notification-webapp NotificationREST without restoring the enum constant,
causing rest-notification-webapp compile failure after webapp testCompile was 
fixed.

Add SERVICE_NOTIFICATION_POST alongside POST_NOTIFICATION to complete 5434 and 
align
with PR #622 / master REST auth without reverting ATLAS-5388.

Refs: ATLAS-5207, ATLAS-5388, ATLAS-5434, PR #801, PR #799, PR #622.

* ATLAS-5207 (2.6 follow-up): align AtlasSecurityConfigTest with header/JWT 
filter chain

> Topic-scoped authorization for REST notification POST (POST_NOTIFICATION + 
> AtlasNotificationRequest)
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-5388
>                 URL: https://issues.apache.org/jira/browse/ATLAS-5388
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 3.0.0
>            Reporter: Umesh Patil
>            Assignee: Umesh Patil
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: Atlas-5388-Test-1.png, Atlas-5388-Test-2.png, 
> Atlas-5388-Test-3.png, Atlas-5388-Test-4.png, Atlas-5388-Test-5.png, 
> Atlas-5388-Test-6.png, Atlas-5388-Test-7.png, Atlas-5388-Testdoc
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> h2. Problem Statement
> {{rest-notification-webapp}} checks auth using an admin privilege 
> ({{{}service-notification-post{}}}). The URL topic ({{{}ATLAS_HOOK{}}}, 
> {{{}ATLAS_ENTITIES{}}}) is not used in the auth decision.
> So today:
>  * A user with notification permission can POST to any topic
>  * Hook accounts cannot be limited to one topic (e.g. hive-bridge → 
> {{ATLAS_HOOK}} only)
>  * Ranger has no {{notification-topic}} resource to create topic policies
>  
>  * 
> h2. Affected Endpoint
>  
> {code:java}
> POST http://<host>:41000/rest/api/atlas/v2/notification/topic/\{topicName}
> {code}
>  
>  * {{topicName}} examples: {{{}ATLAS_HOOK{}}}, {{ATLAS_ENTITIES}}
>  
> Root cause
> ||Area||Today||
> |Request type|{{AtlasAdminAccessRequest}}|
> |Privilege|{{SERVICE_NOTIFICATION_POST}}|
> |Topic used in auth?|No — {{topicName}} ignored|
> |Ranger|No {{notification-topic}} in service-def|
>  
> {code:java}
> verifyAccess(new AtlasAdminAccessRequest(SERVICE_NOTIFICATION_POST), 
> ...){code}
>  



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to