Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Nov 27, 2024
1 parent 9fea703 commit 70f1c05
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ To view the intranet content, visitors must meet one of the following criteria.

- Be in an Allow List of IP ranges.
- Or, have a Microsoft Azure account, within the organisation.
- Or, in the case of the intranet-archive scraper, have a valid JWT token.

The visitor's IP is checked first, then if that check fails, they are redirected to the project's Entra application.

Expand Down Expand Up @@ -546,6 +547,14 @@ This is for 2 reasons:
- It will keep the OAuth session fresh, the endpoint handler will refresh OAuth tokens, and update JWTs before they expire.
- If a visitor's state has changed, e.g. they have moved from an office with an allowed IP, then their browser content is blurred and they are prompted to refresh the page.

### Access for the Intranet Archive service.

The intranet-archive service is a scraper that collects content from the intranet for archiving purposes.

It is granted access via a JWT token, which is generated manually by running the `wp gen-jwt intranet-archive` command from an fpm container.

The cookie has a role of `intranet-archive`. For this roll to be granted access to the intranet, the request IP must be one of Cloud Platform's egress IPs.

<!-- License -->

[License Link]: https://github.com/ministryofjustice/intranet/blob/main/LICENSE 'License.'
Expand Down

0 comments on commit 70f1c05

Please sign in to comment.