Skip to content
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.

Access control component #415

Merged
merged 2 commits into from Jun 21, 2017
Merged

Access control component #415

merged 2 commits into from Jun 21, 2017

Conversation

purple52
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 89.266% when pulling d0022b2 on access-control-component into 1d5b3e9 on master.

@purple52 purple52 requested a review from matt-rich June 21, 2017 14:27
@purple52 purple52 added this to the 2.0.0 milestone Jun 21, 2017
@purple52 purple52 added the bug label Jun 21, 2017
@@ -5,6 +5,9 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to

## [Unreleased]

### Changed
- Improved logging for annotation scanning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you didn't add the change for this commit.

@@ -42,14 +42,15 @@ public void initialise() {
*
* @param envelope - the envelope to be audited.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additional param for javadoc? - or just remove if inheriting from interface.

}

@Test(expected = IllegalStateException.class)
public void shouldComponentIsNotSetThrowException() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldThrowExceptionIfComponentNotSet ?

@@ -19,16 +19,18 @@

@Override
public InterceptorContext process(final InterceptorContext interceptorContext, final InterceptorChain interceptorChain) {
recordAudit(interceptorContext.inputEnvelope());
final String component = (String) interceptorContext.getInputParameter("component")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we add getComponent() on InterceptorContext?

Presumably it is used elsewhere already so makes sense to have it in one place and also not expose the "component" value?

@purple52 purple52 force-pushed the access-control-component branch 2 times, most recently from 73e1422 to 529d4c5 Compare June 21, 2017 15:04
@coveralls
Copy link

Coverage Status

Coverage increased (+0.006%) to 89.266% when pulling 529d4c5 on access-control-component into 1d5b3e9 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 89.265% when pulling 529d4c5 on access-control-component into 1d5b3e9 on master.

This is a workaround to allow audit to know which component within
a service a message is coming from, until we have a better way of
discovering the context, service, and componet names.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 89.265% when pulling ebb7f05 on access-control-component into 1d5b3e9 on master.

@matt-rich matt-rich merged commit fa25f8a into master Jun 21, 2017
@matt-rich matt-rich deleted the access-control-component branch June 21, 2017 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants