Git Product home page Git Product logo

pulse's Introduction

https-norge

Dette er en norsk versjon av prosjektet pulse (The pulse of the federal .gov webspace) for å vise hvordan det står til med HTTPS-bruken på domener eid av offentlige etater og virksomheter i Norge. Løsningen for Norge benytter seg av en liste domener samlet inn av NRK. Domenelisten er tilgjengelig som datasettet norway-gov-domains Oppdatert: Domenelisten ble tatt ned fra Github sommeren 2016 etter ønske fra Norid som med henvisning til Åndsverksloven mente at listen som baserer seg på data fra blant annet dem ikke kunne ligge ute.

Prosjektet er laget av NRK, og journalist Øyvind Bye Skille, i bakkant av en rekke saker om temaet. Se blant annet:

Løsningen er helt og fullt basert på kode fra virksomheten 18F, underlagt General Services Administration og Det hvite hus. Denne koden er så videre bearbeidet for bruk til en tysk versjon https.jetzt! av robbi5.

Den norske versjonen er så igjen bygget på den tyske, en fork. Tusen takk til begge miljøer for kode og spesielt til robbi5 for svar på noen dumme spørsmål fra en journalist som ikke egentlig er utvikler.

Det er ikke laget noen fullstendig dokumentasjon for den norske versjonen, men viderebringer info fra den tyske og amerikanske under.

Kjente bugs:

  • På oversikten over domeneeiere under Lokale og regionale fungerer det ikke å trykke på tallet for domenene tilknyttet til etaten/virksomheten for å få opp domenene. Søket gjøres da mot https/domains og ikke https/city/domains slik det skal.

https.jetzt!

Dieses Projekt bietet eine Übersicht, ob Domains deutscher Behörden das HTTPS-Protokoll (https://) unterstützen, und - falls ja - wie stark diese Unterstützung ist.

Entstanden am OpenDataDay 2016. Domains aus dem german-gov-domains-Datensatz.

Basierend auf the pulse of the federal .gov webspace (pulse.cio.gov) von 18F/General Services Administration.

Dieses Repository ist somit ein Fork von 18F/pulse - die originale Readme hängt unten an.

Neue Domains hinzufügen/Neu scannen:

Die Domains am besten dem german-gov-domains-Datensatz hinzufügen.

Danach lassen sich mit Hilfe von domain-scan neue scan-Ergebnisse erzeugen. Dazu neben pulse das domain-scan-Repo auschecken und Abhängigkeiten installieren:

cd ..
git clone https://github.com/18f/domain-scan.git
cd domain-scan
pip3 install --user -r requirements.txt
cd ..
cd pulse

und pulse mittels make update_httpsjetzt updaten.


The pulse of the federal .gov webspace

How the .gov domain space is doing at best practices and federal requirements.

Documentation Other Links
Setup and Deploy Instructions System Security Plan
a11y scan process Ideas for new sections to add to the site
Ongoing Work Backlog of feature requests and ideas
ATO artifacts Open Source Reuse of the site
Project Information

Setup

Pulse is a Flask app written for Python 3.5 and up. We recommend pyenv for easy Python version management.

  • Install dependencies:
pip install -r requirements.txt
gem install sass bourbon neat bitters
  • If editing styles during development, keep the Sass auto-compiling with:
make watch
  • And to run the app in development, use:
make debug

This will run the app with DEBUG mode on, showing full error messages in-browser when they occur.

Initializing dataset

To initialize the dataset with the last production scan data and database, there's a convenience function:

make data_init

This will download (using curl) the current live production database and scan data to the local data/ directory.

Install domain-scan and dependencies

Download and set up domain-scan from GitHub.

domain-scan in turn requires pshtt and sslyze. These can be installed directly via pip.

Pulse requires you to set one environment variable:

  • DOMAIN_SCAN_PATH: A path to domain-scan's scan binary.

However, if you don't have pshtt and sslyze on your PATH, then domain-scan may need you to set a couple others:

  • PSHTT_PATH: Path to the pshtt binary.
  • SSLYZE_PATH: Path to the sslyze binary.

Configure the AWS CLI

To publish the resulting data to the production S3 bucket, install the official AWS CLI:

pip install awscli

And link it to AWS credentials that allow authorized write access to the pulse.cio.gov S3 bucket.

Then run it

From the Pulse root directory:

python -m data.update

This will kick off the domain-scan scanning process for HTTP/HTTPS and DAP participation, using the .gov domain list as specified in meta.yml for the base set of domains to scan.

Then it will run the scan data through post-processing to produce some JSON and CSV files the Pulse front-end uses to render data.

Finally, this data will be uploaded to the production S3 bucket.

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

pulse's People

Contributors

konklone avatar gbinal avatar xtine avatar robbi5 avatar micahsaul avatar jtexnl avatar tdlowden avatar uncompiled avatar arctansusan avatar siccovansas avatar scottoneal avatar nickbristow avatar jeremiak avatar adelevie avatar alex avatar deknos avatar ianlee1521 avatar titanous avatar tswicegood avatar

Stargazers

Marius Lundgård avatar Jørgen Arnor G. Lom avatar Sheng-Ho Yuan avatar Martin Ek avatar Mathias Ose avatar  avatar

Watchers

James Cloos avatar Øyvind Bye Skille avatar

pulse's Issues

make publish fails when FREEZER_BASE_URL set to other than root

make publish fails with 404 errors when the FREEZER_BASE_URL is set to something below site root.

The process finishes if the FREEZER_BASE_URL is at site root of a domain, but when changing it there is some kind of redirect error.

It seems to be the same error mentioned in this issue related to flask-frozen: SimonSapin/Frozen-Flask#34
Which seems to originate upstream with workzeug: pallets/werkzeug#382 (comment)

I get this output when it fails: https://gist.github.com/byeskille/e55e81b73174c2df8671b9054284781e

Hope to fix it because our version of pulse is hosted not on the root, and doing make publish with a root FREEZER_BASE_URL and then manually changing everything is likely to produce human errors.

Clicking on number in By Agency under City report generates wrong url

In the overview of domains sorted By Agency (Oversikt Kommune eller fylkeskommune) under the City report, when clicking the number showing the domains associated with an agency the system generates a wrong query url.

The url generated is on the form /https/domains/#q=query
but should have been:
/https/city/domains/#q=query

This works in the Federal report, but not in the City report.

Though the url could have been on the form /https/domaintype/domains/#q=query for both of them.
E.g. /https/city/domains/#q=query and /https/federal/domains/#q=query

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.