Citizen Intelligence Agency

The Citizen Intelligence Agency is a volunteer-driven, open-source intelligence (OSINT) project focusing on political activity in Sweden. By monitoring key political figures and institutions, the platform provides valuable insights into financial performance, risk metrics, and political trends. The dashboard features a ranking system, enabling users to objectively compare politicians based on performance. The initiative is independent and non-partisan, seeking to encourage informed decision-making, enhance transparency in governance, and cultivate an engaged and well-informed citizenry.

Section: About Hack23

Data Sources

The project relies on open data from various sources, including:

  • http://data.riksdagen.se/. Offers a wide range of data related to the Swedish Parliament, including members, committees, and documents.
  • http://www.val.se/. Provides information on election processes, results, and political parties in Sweden.
  • http://data.worldbank.org/. Contains global development data, including economic indicators and demographic information.
  • https://www.esv.se/. Offers data on government finances, economic trends, and public sector operations in Sweden.

Badges

Runtime (JDK 21+)

Section: Resources

Installing Debian/Ubuntu package

Currently only build a debian package, works with debian and ubuntu 14.04+

Installing database(postgres) and openjdk

$ sudo apt-get install openjdk-21-jdk postgresql-16 pgadmin3

2.1 Installing Postgresql on Ubuntu

$ sudo apt-get install postgresql-16 postgresql-contrib postgresql-16-pgaudit

3. Create empty database

Below description set the default username/password and database name used for development, recommend using custom credentials and update the configuration at /opt/cia/webapps/cia/WEB-INF/database.properties to define your own username/password and database name.

$ sudo su - postgres $ psql postgres=# CREATE USER eris WITH password 'discord'; postgres=# CREATE DATABASE cia_dev; postgres=# GRANT ALL PRIVILEGES ON DATABASE cia_dev to eris;

4. Modify postgres setting, enable prepared transactions

Edit file "/etc/postgresql/16/main/postgresql.conf" set

max_prepared_transactions = 100 shared_preload_libraries = 'pg_stat_statements, pgaudit, pgcrypto' pgaudit.log = ddl pg_stat_statements.track = all pg_stat_statements.max = 10000

5. Modify postgres setting Edit file "/etc/postgresql/16/main/pg_hba.conf" add line

host all all ::1/128 md5

6. Restart postgres

$ service postgresql restart

7. Get cia debian package and

$ wget https://github.com/Hack23/cia/releases/download/2024.10.15/cia-dist-deb-2024.10.15.all.deb

8. Install debian package

$ sudo dpkg -i cia-dist-deb-2024.10.15.all.deb

9. Access the server at https://localhost:28443/cia/