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

Benoy Antony edited comment on HADOOP-11567 at 2/18/15 6:19 PM:
----------------------------------------------------------------

h4.Design

_FileSignerSecretProvider_ will provide the secret based on the contents of the 
file.

h5.At Init 

Read the secret from the file

h5. update

Use _WatcherService_ to identify the file change , loads the new secret and 
starts using the new secret.

h5. Options: 

Effective time in milliseconds : time at which the secret will be used to sign 
and verify , defaults to 0, which means immediately
Transition period in seconds : during which old secret is valid, defaults to 0.

h5.Property file format
secret=secret
effectivetimeinmillis=0
transitionperiodinmillis=0

If the file doesn't contain the secret property , the entire file content is 
read as secret. effectivetimeinmillis and  transitionperiodinmillis will be set 
to default values(0).




was (Author: benoyantony):
h4.Design

_FileSignerSecretProvider_ will provide the secret based on the contents of the 
file.

h5.At Init 

Read the secret from the file

h5. update

Use _WatcherService_ to identify the file change , loads the new secret and 
starts using the new secret.

h5. Options: 

Effective time in milliseconds : time at which the secret will be used to sign 
and verify , defaults to 0, which means immediately
Transition period in seconds : during which old secret is valid, defaults to 0.

h5.Property file format
secret=secret
effectivetimeinmillis=0
transitionperiodinseconds=0


> Refresh HTTP Authentication secret without restarting the server
> ----------------------------------------------------------------
>
>                 Key: HADOOP-11567
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11567
>             Project: Hadoop Common
>          Issue Type: Improvement
>    Affects Versions: 2.6.0
>            Reporter: Benoy Antony
>            Assignee: Benoy Antony
>         Attachments: HADOOP-11567-001.patch
>
>
> The _AuthenticationFilter_ uses the secret read from a file specified via 
> hadoop.http.authentication.signature.secret.file to sign the cookie 
> containing user authentication information.
> The secret is read only during initialization and hence needs a restart to 
> update the secret.
> ZKSignerSecretProvider can be used to rotate the secrets without restarting 
> the servers, but it needs a zookeeper setup.
> The jira is to refresh secret by updating the file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to