Skip to content

Commit 0735084

Browse files
authored
[#IOPID-2226] remove api_session endpoints and backendli related config (#1224)
1 parent 322aeba commit 0735084

31 files changed

+31
-3925
lines changed

.changeset/yellow-guests-melt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pagopa/io-backend": major
3+
---
4+
5+
Removed backend internal related config and endpoints

.env.example

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ PORT=80
88
REDIS_URL=put_the_azure_redis_url_here
99
REDIS_PORT=put_the_azure_redis_port_here
1010
REDIS_PASSWORD=put_the_azure_redis_password_here
11-
PRE_SHARED_KEY="12345"
1211
ALLOW_NOTIFY_IP_SOURCE_RANGE="::ffff:ac13:1/112"
13-
ALLOW_SESSION_HANDLER_IP_SOURCE_RANGE="::ffff:ac13:1/112"
1412
AUTHENTICATION_BASE_PATH=""
1513
PAGOPA_API_URL_PROD="https://pagopa-proxy-prod"
1614
PAGOPA_API_KEY_PROD=foo
@@ -93,11 +91,6 @@ PECSERVERS_aruba_serviceId="2"
9391
# ------------------------------------
9492
THIRD_PARTY_CONFIG_LIST=""
9593

96-
# ------------------------------------
97-
# APPBACKENDLI
98-
# ------------------------------------
99-
IS_APPBACKENDLI=false
100-
10194

10295
# ------------------------------------
10396
# PN Service Id
@@ -120,18 +113,10 @@ FF_IO_X_USER_TOKEN_CANARY_SHA_USERS_REGEX="XYZ"
120113
# ------------------------------------
121114
# LOLLIPOP
122115
# ------------------------------------
123-
LOLLIPOP_REVOKE_STORAGE_CONNECTION_STRING=foobar
124-
LOLLIPOP_REVOKE_QUEUE_NAME=lollipoprevoke
125116
LOLLIPOP_API_KEY=put_your_api_key_here
126117
LOLLIPOP_API_BASE_PATH="api/v1"
127118
LOLLIPOP_API_URL="http://host.docker.internal:7078/api/v1"
128119

129-
# ------------------------------------
130-
# FAST LOGIN
131-
# ------------------------------------
132-
LOCKED_PROFILES_STORAGE_CONNECTION_STRING="CONNECTION_STRING"
133-
LOCKED_PROFILES_TABLE_NAME="lockedProfiles"
134-
135120
# ------------------------------------
136121
# UNIQUE EMAIL ENFORCEMENT
137122
# ------------------------------------

.github/workflows/deploy-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
description: Web App names.
1111
type: string
1212
required: true
13-
default: "['io-p-app-appbackendli', 'io-p-app-appbackendl1', 'io-p-app-appbackendl2']"
13+
default: "['io-p-app-appbackendl1', 'io-p-app-appbackendl2']"
1414

1515
env:
1616
BUNDLE_NAME: bundle

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,9 @@ Those are all Environment variables needed by the application:
110110
| CGN_API_BASE_PATH | The root path for the backend cgn api endpoints | string |
111111
| PORT | The HTTP port the Express server is listening to | int |
112112
| REDIS_URL | The URL of a Redis instance | string |
113-
| PRE_SHARED_KEY | The key shared with the API backend to authenticate the webhook notifications | string |
114113
| ALLOW_NOTIFY_IP_SOURCE_RANGE | The range in CIDR form of allowed IPs for the webhook notifications | string |
115114
| NOTIFICATIONS_STORAGE_CONNECTION_STRING | Connection string to Azure queue storage for notification hub messages | string |
116115
| NOTIFICATIONS_QUEUE_NAME | Queue name of Azure queue storage for notification hub messages | string |
117-
| ALLOW_SESSION_HANDLER_IP_SOURCE_RANGE | The range in CIDR form of IPs of service allowed to handle user sessions | string |
118116
| AUTHENTICATION_BASE_PATH | The root path for the authentication endpoints | string |
119117
| PAGOPA_API_URL_PROD | The url for the PagoPA api endpoints in prod mode | string |
120118
| PAGOPA_API_KEY_PROD | The api-key needed to call the pagopa proxy API | string |
@@ -135,7 +133,6 @@ Those are all Environment variables needed by the application:
135133
| APP_MESSAGES_API_KEY | The key used to authenticate to the io-functions-app-messages API | string |
136134
| APP_MESSAGES_API_URL | The io-functions-app-messages URL | string |
137135
| THIRD_PARTY_CONFIG_LIST | (Optional, default empty) A list of ThirdParty Configuration | stringified JSON |
138-
| IS_APPBACKENDLI | (Optional, default false) Enables notify and session lock endpoints working only on appbackendli | boolean |
139136
| FF_PN_ACTIVATION_ENABLED | (Optional) Enable the integration with PN for Service Activation (1 enabled) | int |
140137
| PN_ACTIVATION_BASE_PATH | (Required if FF_PN_ACTIVATION_ENABLED = 1) base path for activation endpoint | string |
141138
| PN_API_KEY | (Required if FF_PN_ACTIVATION_ENABLED = 1) PN API key for production environment | string |
@@ -149,10 +146,6 @@ Those are all Environment variables needed by the application:
149146
| LOLLIPOP_API_KEY | The key used to authenticate to the io-function-lollipop API | string |
150147
| LOLLIPOP_API_URL | The io-function-lollipop URL | string |
151148
| LOLLIPOP_API_BASE_PATH | The io-function-lollipop api base path | string |
152-
| LOLLIPOP_REVOKE_STORAGE_CONNECTION_STRING | Connection string to Azure queue storage for revoke Users lollipop PubKeys | string |
153-
| LOLLIPOP_REVOKE_QUEUE_NAME | Queue name of Azure queue storage for revoke Users lollipop PubKeys | string |
154-
| LOCKED_PROFILES_STORAGE_CONNECTION_STRING | Connection string to Azure queue storage for locked profiles table | string |
155-
| LOCKED_PROFILES_TABLE_NAME | The locked profiles table name | string |
156149
| FF_UNIQUE_EMAIL_ENFORCEMENT | (Optional) Enable the unique email enforcement policy. Default: NONE | string (enum: NONE, BETA, ALL) |
157150
| UNIQUE_EMAIL_ENFORCEMENT_USERS | (Optional) Comma separated list of UNIQUE_EMAIL_ENFORCEMENT beta testers. Default: empty array | string |
158151
| SERVICES_APP_BACKEND_BASE_PATH | New Service APIs(include search engine) basepath | string |
@@ -174,7 +167,6 @@ Notes:
174167
If you are trying to run the docker images on your local environment (through the docker-compose) you must set the following variables:
175168
* NOTIFICATIONS_STORAGE_CONNECTION_STRING
176169
* PUSH_NOTIFICATIONS_STORAGE_CONNECTION_STRING
177-
* LOLLIPOP_REVOKE_STORAGE_CONNECTION_STRING
178170
With this **connection string** as value:
179171
* DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:20003/devstoreaccount1;QueueEndpoint=http://127.0.0.1:20004/devstoreaccount1;TableEndpoint=http://127.0.0.1:20005/devstoreaccount1;
180172

api_notifications.yaml

Lines changed: 4 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -10,60 +10,11 @@ schemes:
1010
security:
1111
- Token: []
1212
paths:
13-
/notify:
14-
x-swagger-router-controller: NotificationController
15-
post:
16-
operationId: notify
17-
summary: Notify a user
18-
description: Post the notification to the user using a push notification.
19-
parameters:
20-
- in: body
21-
name: body
22-
required: true
23-
schema:
24-
$ref: '#/definitions/Notification'
25-
x-examples:
26-
application/json:
27-
message:
28-
content:
29-
subject: message subject, aliquip sint nulla in estinut
30-
markdown: >-
31-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
32-
Maecenas et mollis felis. Vivamus orci nisl, commodo ut
33-
sodales ut, eleifend a libero. Donec dapibus, turpis in
34-
mattis tempor, risus nunc malesuada ex, non aliquet metus
35-
nunc a lacus. Aenean in arcu vitae nisl porta fermentum nec
36-
non nibh. Phasellus tortor tellus, semper in metus eget,
37-
eleifend laoreet nibh. Aenean feugiat lectus ut nisl
38-
eleifend gravida.
39-
created_at: '2018-05-03T16:21:38.167Z'
40-
fiscal_code: TMMEXQ60A10Y526X
41-
id: 01CCKCY7QQ7WCHWTH8NB504386
42-
sender_service_id: 5a25abf4fcc89605c082f042c49a
43-
sender_metadata:
44-
department_name: Department name
45-
organization_name: Organization name
46-
service_name: Service name
13+
"/dummy":
14+
get:
4715
responses:
48-
'200':
49-
description: Success.
50-
schema:
51-
$ref: '#/definitions/SuccessResponse'
52-
examples:
53-
application/json:
54-
message: ok
55-
'400':
56-
description: Bad request
57-
schema:
58-
$ref: '#/definitions/ProblemJson'
59-
'401':
60-
description: Token null or invalid.
61-
'500':
62-
description: >-
63-
There was an error in forwarding the notification to the
64-
Notification Hub.
65-
schema:
66-
$ref: '#/definitions/ProblemJson'
16+
"200":
17+
description: "ok"
6718
definitions:
6819
CreatedMessageWithContent:
6920
type: object

0 commit comments

Comments
 (0)