{"id":44437236,"url":"https://github.com/infn-datacloud/webapp-rgw","last_synced_at":"2026-05-21T11:01:31.967Z","repository":{"id":318470697,"uuid":"951772046","full_name":"infn-datacloud/webapp-rgw","owner":"infn-datacloud","description":"Web application for uploading and downloading files to RADOS Gateway/Ceph Object Storage","archived":false,"fork":false,"pushed_at":"2026-03-09T09:29:30.000Z","size":2567,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-03-09T12:49:14.196Z","etag":null,"topics":["ceph-radosgw","infn","infn-cloud","object-storage","oidc","outh2","s3","sts"],"latest_commit_sha":null,"homepage":"https://s3webui.cloud.infn.it","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infn-datacloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSES/EUPL-1.2.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-20T08:10:34.000Z","updated_at":"2026-03-09T09:29:31.000Z","dependencies_parsed_at":"2025-10-07T12:23:57.707Z","dependency_job_id":"c6561c24-2653-4712-ab13-d7cf62050557","html_url":"https://github.com/infn-datacloud/webapp-rgw","commit_stats":null,"previous_names":["infn-datacloud/webapp-rgw"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/infn-datacloud/webapp-rgw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infn-datacloud%2Fwebapp-rgw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infn-datacloud%2Fwebapp-rgw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infn-datacloud%2Fwebapp-rgw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infn-datacloud%2Fwebapp-rgw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infn-datacloud","download_url":"https://codeload.github.com/infn-datacloud/webapp-rgw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infn-datacloud%2Fwebapp-rgw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33298250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ceph-radosgw","infn","infn-cloud","object-storage","oidc","outh2","s3","sts"],"created_at":"2026-02-12T14:12:02.637Z","updated_at":"2026-05-21T11:01:31.960Z","avatar_url":"https://github.com/infn-datacloud.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RADOS Gateway Web Application\n\nThis project consists in a web application to easily access file objects stored\nwithin Ceph Object Storage/RADOS Gateway, using the AWS S3 protocol for object\nhandling, and the OAuth2/OpenID Connect for authorization and authentication via\nthe Secure Token Service (STS).\n\nThe webapp is implemented using the React, Next.js, TypeScript and TailwindCSS,\nas core frameworks.\nThe OAuth2 support is provided by the [Better Auth.js](https://better-auth.com)\nframework.\nAll S3 operations are implemented using the official\n[AWS SDK for javascript](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/).\n\n## OpenID/OAuth2 Client Configuration\n\nThe webapp acts as client OpenID Connect/OAuth2 client and thus, registering the\nclient is required.\n\nThe following sections describe how to configure an OpenID Connect/OAuth2\nclient.\n\n### Redirect URIs\n\nRedirect URIs must be in the form of\n`\u003cWEBAPP_RGW_BASE_URL\u003e/api/auth/oauth2/callback/indigo-iam`\n(without the trailing `/`), where `\u003cWEBAPP_RGW_BASE_URL\u003e` is the\nhostname of the machine hosting the application.\n\nIt is possible to configure more than one redirect URI.\n\nFor development:\n\n```shell\nhttp://localhost:300/api/auth/oauth2/callback/indigo-iam\n```\n\nFor a production deployment, the redirect uri will be, for example:\n\n```shell\nhttps://s3webui.cloud.infn.it/api/auth/oauth2/callback/indigo-iam\n```\n\n### Scopes\n\nEnable the following scopes\n\n- `email`\n- `openid`\n- `profile`\n\n### Grant Types and Crypto\n\nThe `authorization_code` grant type is required.\nEnable the PKCE crypto feature with SHA-256 has algorithm.\n\n## Configuration\n\nBefore start the application, an environment file is needed. An example can be\nfound at [envs/example.env](envs/example.env).\n\n- `WEBAPP_RGW_BASE_URL`: hostname of your deployment, for example\n  https://s3webui.cloud.infn.it or http://localhost:3000\n- `WEBAPP_RGW_AUTH_SECRET`: secret to encrypt session cookies (see below)\n- `WEBAPP_RGW_OIDC_ISSUER`: OpenID Connect Issuer\n- `WEBAPP_RGW_OIDC_CLIENT_ID`: OpenID Connect Client ID\n- `WEBAPP_RGW_OIDC_CLIENT_SECRET` OpenID Connect Client Secret\n- `WEBAPP_RGW_OIDC_AUDIENCE`: OpenID Connect Audience\n- `WEBAPP_RGW_S3_ENDPOINT`: Rados Gateway/S3 API Endpoint\n- `WEBAPP_RGW_S3_REGION`: Rados Gateway/S3 Region Name\n- `WEBAPP_RGW_S3_ROLE_ARN`: Rados Gateway Role/S3 ARN\n- `WEBAPP_RGW_S3_ROLE_DURATION_SECONDS`: Rados Gateway/S3 Role duration in seconds\n\n### Auth Secret\n\nThe application needs a secret to encrypt/decrypt session cookies.\n\n\u003e **N.B.**: This is a _real_ secret and must be kept secure.\n\nYou can generate an `WEBAPP_RGW_AUTH_SECRET` with the following command:\n\n```shell\nopenssl rand -base64 32\n```\n\n## Deployment\n\nThis project is configured with a CI/CD pipeline which builds Docker images\nfor development and production releases. The images are stored\n[here](https://hub.docker.com/r/indigopaas/webapp-rgw).\n\nTo start the application run\n\n```shell\ndocker run --rm --name s3webui -p 8080:80 --env-file .env indigopaas/webapp-rgw\n```\n\nIf you have trouble in reaching the Rados Gateway endpoint from within the\ncontainer, you can specify the private IP address using the `--add-host` flag\nto the `docker run` command, for example\n\n```shell\ndocker run \\\n  --rm \\\n  --name s3webui \\\n  -d \\\n  --add-host rgw.cloud.infn.it=10.200.0.18 \\\n  --add-host s3webui.cloud.infn.it=10.200.0.18 \\\n  -p 127.0.0.1:8080:80 \\\n  --env-file .env \\\n  indigopaas/webapp-rgw\n```\n\n## Telemetry\n\nThe application supports Opentelemetry instrumentation and INFN-CNAF Otello\nservice. Telemetry is enabled by default and sends traces to\nhttps://otello.cloud.cnaf.infn.it/collector/v1/traces.\n\nTo change the OpenTelemetry OTLP collector endpoint set the environment variable\n\n```bash\nWEBAPP_RGW_OTEL_EXPORTER_OTLP_ENDPOINT=https://otello.cloud.cnaf.infn.it/collector/v1/traces\n```\n\nTo completely disable telemetry set the following environment variable\n\n```bash\nWEBAPP_RGW_OTEL_DISABLE_TELEMETRY=1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfn-datacloud%2Fwebapp-rgw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfn-datacloud%2Fwebapp-rgw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfn-datacloud%2Fwebapp-rgw/lists"}