Skip to content

Add invalid attempts - #43

Open
iamazzeez wants to merge 70 commits into
add_request_validatorsfrom
add_invalid_attempts
Open

Add invalid attempts#43
iamazzeez wants to merge 70 commits into
add_request_validatorsfrom
add_invalid_attempts

Conversation

@iamazzeez

@iamazzeez iamazzeez commented Mar 30, 2022

Copy link
Copy Markdown

https://chefio.atlassian.net/browse/KINETICS-66
https://chefio.atlassian.net/browse/KINETICS-67
https://chefio.atlassian.net/browse/KINETICS-68
https://chefio.atlassian.net/browse/KINETICS-79
https://chefio.atlassian.net/browse/KINETICS-73

Overview

What this PR does / why we need it

This PR creates blocked_user table in dex psql db
This is needed to accommodate failed login attempts with valid username

Special notes for your reviewer

Does this PR introduce a user-facing change?


Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
@iamazzeez iamazzeez added the enhancement New feature or request label Mar 30, 2022
@iamazzeez
iamazzeez requested review from Dmaddu and kalroy March 30, 2022 07:04
@iamazzeez iamazzeez self-assigned this Mar 30, 2022
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
@Dmaddu
Dmaddu marked this pull request as draft March 30, 2022 10:37
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
@iamazzeez
iamazzeez requested a review from Dmaddu April 14, 2022 10:18
iamazzeez and others added 12 commits April 25, 2022 14:41
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
Fixed errors occurred while testing
Signed-off-by: Abdul-Az <aazeez@progress.com>
Signed-off-by: Abdul-Az <aazeez@progress.com>
* Testing Refresh API

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Change 2

* Handler

* Last Used

* test

* Time Difference

* Check

* Token Validator

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Checking

* Check

* Test

* Test

* Check

* Check

* Check

* Check

* Check

* Check

* Check

* Check

* Check

* Check

* Check

* Removing Redundant Code

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Token Validator

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Removing Redundant Code

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Code Updated

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* Fixed validator

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>

* naming convention

Signed-off-by: SanjuPal01 <sanju.sanju@progress.com>
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 22 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Signed-off-by: Abdul-Az <aazeez@progress.com>
@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 22 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

YashviJain01 and others added 13 commits July 25, 2025 10:56
* Update go version

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding the go version as 1.24.3

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding new version of goxmldsig

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Changing thr sqaure/go-hose package to go-jose/go-jose

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Upgrading go

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Fixing the pipeline

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding the test case and pipeline fix

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Upgrading go conatienrs package

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* upgrade test-conatiner package evrsion

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding updated packages

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Updating test-containers

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Updating packages

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Commenting ldap tests

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* commenting kubernetes test cases

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Remvoing old packages to upgrade go version

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Solving lint issues

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Removing verify proto from the pipeline

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Removing duplicate entries

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

---------

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
Co-authored-by: Yashvi Jain <Yashvi.jain@progress.com>
* upgrade clientgolang package

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

* Adding nolint for wanted warnings

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>

---------

Signed-off-by: Yashvi Jain <Yashvi.jain@progress.com>
Co-authored-by: Yashvi Jain <Yashvi.jain@progress.com>
- Update grpc dependency from v1.29.0 to v1.79.3 in go.mod
- Remove storage/etcd backend (incompatible with grpc v1.30+ due to removed grpc/naming package)
- Remove etcd import and storage entry from cmd/dex/config.go
- Run go mod tidy to update go.sum

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
…_SOURCE

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Migrate from the old monolithic go.etcd.io/etcd module (which depended
on google.golang.org/grpc/naming, removed in grpc v1.30.0) to the
modern modular go.etcd.io/etcd/client/v3 v3.5.21.

Changes:
- storage/etcd/: restored all 4 files with updated import paths
  - go.etcd.io/etcd/clientv3 -> go.etcd.io/etcd/client/v3
  - go.etcd.io/etcd/clientv3/namespace -> go.etcd.io/etcd/client/v3/namespace
  - go.etcd.io/etcd/pkg/transport -> go.etcd.io/etcd/client/pkg/v3/transport
- cmd/dex/config.go: restored etcd storage registration
- go.mod: added go.etcd.io/etcd/client/v3 and client/pkg/v3 v3.5.21
- .github/workflows/ci.yml: update etcd image to v3.5.21, add DEX_ETCD_ENDPOINTS env var

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
etcdctl is not bundled in gcr.io/etcd-development/etcd:v3.5.21 image.
Switch health check to use curl against the /health HTTP endpoint.

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
…velopment/etcd image)

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
v3.2.9 was the original working image with a compatible etcdctl
health check. The etcd client/v3 Go module is still v3.5.21 —
the CI image version does not need to match the Go module version.

Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Signed-off-by: Aishwarya2001A <aaishwar@progress.com>
Update google.golang.org/grpc to v1.79.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants